Exemplo n.º 1
0
 HttpHeaderCollection(HttpHeaderCollection link, string key, Strings values) :
     base(key, values, link.Comparer)
 {
     if (key == null)
     {
         throw new ArgumentNullException(nameof(key));
     }
     _link = link;
 }
Exemplo n.º 2
0
 public static HttpFetch <T> Create <T>(int id,
                                        T content,
                                        Version httpVersion,
                                        HttpStatusCode statusCode,
                                        string reasonPhrase,
                                        HttpHeaderCollection headers,
                                        Uri requestUrl,
                                        HttpHeaderCollection requestHeaders) =>
 new HttpFetch <T>(id, content,
                   httpVersion, statusCode, reasonPhrase, headers,
                   requestUrl, requestHeaders);
Exemplo n.º 3
0
 public HttpFetchInfo(int id,
                      IHttpClient client,
                      Version httpVersion,
                      HttpStatusCode statusCode,
                      string reasonPhrase,
                      HttpHeaderCollection headers,
                      HttpHeaderCollection contentHeaders,
                      Uri requestUrl,
                      HttpHeaderCollection requestHeaders)
 {
     Id             = id;
     Client         = client;
     HttpVersion    = httpVersion;
     StatusCode     = statusCode;
     ReasonPhrase   = reasonPhrase;
     Headers        = headers;
     ContentHeaders = contentHeaders;
     RequestUrl     = requestUrl;
     RequestHeaders = requestHeaders;
 }