public static int TestUrlMatch(string url, string host, string headersRaw) { GoString gsUrl = GoString.FromString(url); GoString gsHost = GoString.FromString(host); GoString gsHeadersRaw = GoString.FromString(headersRaw); return(TestUrlMatch(gsUrl, gsHost, gsHeadersRaw)); }
public bool SendCustomResponse(int responseCode, string contentType, byte[] body) { return(ResponsetNativeWrapper.CreateResponse(handle, responseCode, GoString.FromString(contentType), GoString.FromBytes(body))); }
public static void Load(string fileName) { GoString gsFileName = GoString.FromString(fileName); Load(gsFileName); }
public static void Save(string filePath) { GoString gsFilePath = GoString.FromString(filePath); Save(gsFilePath); }
public static void ParseRuleFile(string fileName, int categoryId, ListType listType) { GoString gsFileName = GoString.FromString(fileName); ParseRuleFile(gsFileName, categoryId, listType); }