Beispiel #1
0
        public HttpParser(HttpParserType type, IHttpParserHandler handler)
        {
            _type     = type;
            _handler  = handler;
            _parser   = new UnmanagedMemory(HttpParserNative.Size());
            _settings = SetupParserSettings();

            Init();
        }
Beispiel #2
0
        public HttpParser(IHttpParserHandler parser)
        {
            this.parser = parser;
            sb          = new StringBuilder();

#line 539 "HttpParser.cs"
            {
                cs = http_parser_start;
            }

#line 322 "HttpParser.cs.rl"
        }