Example #1
0
 public void OnRequestBegan(HttpRequestHeaders request, bool shouldKeepAlive)
 {
     events.Add(new ParserEvent()
     {
         Type = ParserEventType.RequestHeaders,
         KeepAlive = shouldKeepAlive,
         Request = request,
     });
 }
 public void OnRequestBegan(HttpRequestHeaders head, bool shouldKeepAlive)
 {
     queue.OnRequestBegan(head, shouldKeepAlive);
 }
 public void OnRequestBegan(HttpRequestHeaders head, bool shouldKeepAlive)
 {
     queue.OnRequestBegan(head, shouldKeepAlive);
 }
Example #4
0
        public void OnHeadersEnd(HttpParser parser)
        {
            Debug.WriteLine("OnHeadersEnd");

            if (!string.IsNullOrEmpty(headerValue))
                CommitHeader();

            var request = new HttpRequestHeaders()
                {
                    // TODO path, query, fragment?
                    Method = method,
                    Uri = requestUri,
                    Headers = headers,
                    Version = new Version(parser.MajorVersion, parser.MinorVersion)
                };

            del.OnRequestBegan(request, parser.ShouldKeepAlive);
        }