Example #1
0
        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));
        }
Example #2
0
 public bool SendCustomResponse(int responseCode, string contentType, byte[] body)
 {
     return(ResponsetNativeWrapper.CreateResponse(handle, responseCode, GoString.FromString(contentType), GoString.FromBytes(body)));
 }
Example #3
0
        public static void Load(string fileName)
        {
            GoString gsFileName = GoString.FromString(fileName);

            Load(gsFileName);
        }
Example #4
0
        public static void Save(string filePath)
        {
            GoString gsFilePath = GoString.FromString(filePath);

            Save(gsFilePath);
        }
Example #5
0
        public static void ParseRuleFile(string fileName, int categoryId, ListType listType)
        {
            GoString gsFileName = GoString.FromString(fileName);

            ParseRuleFile(gsFileName, categoryId, listType);
        }