示例#1
0
        public override ILexer <StatusLine> Create()
        {
            var sp         = SpaceLexerFactory.Create();
            var innerLexer = Concatenation.Create(
                HttpVersionLexerFactory.Create(),
                sp,
                StatusCodeLexerFactory.Create(),
                sp,
                ReasonPhraseLexerFactory.Create(),
                NewLineLexerFactory.Create());

            return(new StatusLineLexer(innerLexer));
        }
示例#2
0
        public override ILexer <RequestLine> Create()
        {
            var sp         = SpaceLexerFactory.Create();
            var innerLexer = Concatenation.Create(
                MethodLexerFactory.Create(),
                sp,
                RequestTargetLexerFactory.Create(),
                sp,
                HttpVersionLexerFactory.Create(),
                NewLineLexerFactory.Create());

            return(new RequestLineLexer(innerLexer));
        }