private void OnRequestLine(object sender, RequestLineEventArgs e) { _currentRequest.Method = e.HttpMethod; _currentRequest.HttpVersion = e.HttpVersion; _currentRequest.UriPath = e.UriPath; }
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); }
private void OnRequestLine(object sender, RequestLineEventArgs e) { _method = e.HttpMethod; _version = e.HttpVersion; _path = e.UriPath; }