internal HttpRequestHeader(DataReader reader, IEnumerable <HttpHeader> headers, string method, string path, HttpVersion version) { _reader = reader; Headers = new List <HttpHeader>(headers); Method = method; Path = path; Version = version; // These methods can't have a content length if (IsGet || IsHead) { ContentLength = 0; } else { ContentLength = HttpParser.GetContentLength(Headers); } }