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

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

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

            ParseRuleFile(gsFileName, categoryId, listType);
        }