Example #1
0
        public HttpMessageHeader(String startLine, HttpHeaders headers)
        {
            Contract.Requires<ArgumentNullException>(!String.IsNullOrEmpty(startLine), "startLine");
            Contract.Requires<ArgumentNullException>(headers != null, "headers");

            _startLine = startLine;
            _httpHeaders = headers;
        }
Example #2
0
        public void ShouldReturnUnmodifiedHeaders(IList<String> headers)
        {
            var headerCollection = new HttpHeaders(headers);

            Expect(headerCollection.Lines, Is.EqualTo(headers));
        }
Example #3
0
 public GeneralHeaders(HttpHeaders headers)
 {
     Headers = headers;
 }
Example #4
0
 public HttpMessageHeader(String startLine = null)
 {
     _startLine = startLine ?? String.Empty;
     _httpHeaders = new HttpHeaders();
 }
Example #5
0
 public HttpMessageHeader(string startLine = null)
 {
     _startLine   = startLine ?? string.Empty;
     _httpHeaders = new HttpHeaders();
 }
Example #6
0
 public EntityHeaders(HttpHeaders headers)
 {
     _headers = headers;
 }