Ejemplo n.º 1
0
 private void OnRequestLine(object sender, RequestLineEventArgs e)
 {
   _currentRequest.Method = e.HttpMethod;
   _currentRequest.HttpVersion = e.HttpVersion;
   _currentRequest.UriPath = e.UriPath;
 }
Ejemplo n.º 2
0
        private void OnRequestLine(object sender, RequestLineEventArgs e)
        {
            _currentRequest.Method = e.HttpMethod;
            _currentRequest.HttpVersion = e.HttpVersion;
            _currentRequest.UriPath = e.UriPath;

            // Initialize _currentRequest.Uri to a synthesized path. This will be the final value if the host header is not sent
            string authority = _localEndPoint.Address.ToString();
            if (_localEndPoint.Port != 80) authority += ":" + _localEndPoint.Port;
            _currentRequest.Uri = new Uri((IsSecured ? "https://" : "http://") + authority + e.UriPath);
        }
Ejemplo n.º 3
0
 private void OnRequestLine(object sender, RequestLineEventArgs e)
 {
     _method = e.HttpMethod;
     _version = e.HttpVersion;
     _path = e.UriPath;
 }