diff --git a/xml/System.Net.Http/HttpClient.xml b/xml/System.Net.Http/HttpClient.xml index cafa84df4a8..45d0985c067 100644 --- a/xml/System.Net.Http/HttpClient.xml +++ b/xml/System.Net.Http/HttpClient.xml @@ -363,9 +363,32 @@ public class GoodController : ApiController System.Net.IWebProxy - To be added. - To be added. - To be added. + Gets or sets the global Http proxy. + A proxy used by every call that instantiates a . + +  instances use if no proxy is set explicitly in the  passed through its constructor. + +The default instance returned by this property will initialize following a different set of rules depending on your platform: +* **For Windows:** Reads proxy configuration from environment variables or, if those are not defined, from the user's proxy settings. + +* **For macOS:** Reads proxy configuration from environment variables or, if those are not defined, from the system's proxy settings. + +* **For Linux:** Reads proxy configuration from environment variables or, in case those are not defined, this property initializes a non-configured instance that bypasses all addresses. + +The environment variables used for `DefaultProxy` initialization on Windows and Unix-based platforms are: +* HTTP_PROXY: the hostname or IP address of the proxy server used on HTTP requests. +* HTTPS_PROXY: the hostname or IP address of the proxy server used on HTTPS requests. +* ALL_PROXY: the hostname or IP address of the proxy server used on HTTP and/or HTTPS requests in case HTTP_PROXY and/or HTTPS_PROXY are not defined. +* NO_PROXY: a comma-separated list of hostnames that should be excluded from proxying. + + ]]> + + + The value passed cannot be . + @@ -424,10 +447,23 @@ public class GoodController : ApiController System.Version - To be added. - To be added. - To be added. - + Gets or sets the default HTTP version used on subsequent requests made by this instance. + The default version to use for any requests made with this instance. + + by default. + +The `DefaultRequestVersion` property specifies the default HTTP version to use for any requests sent using this instance, such as calls to , , or . + +The `DefaultRequestVersion` property can be changed as long as the instance has not started any request. + ]]> + + In a set operation, is . + The instance has already started one or more requests. + The instance has already been disposed. + @@ -2239,4 +2275,4 @@ httpClient.Timeout = TimeSpan.FromMinutes(10); - \ No newline at end of file + diff --git a/xml/System.Net.Http/HttpResponseMessage.xml b/xml/System.Net.Http/HttpResponseMessage.xml index cfe422c318c..b0f4bca34be 100644 --- a/xml/System.Net.Http/HttpResponseMessage.xml +++ b/xml/System.Net.Http/HttpResponseMessage.xml @@ -484,9 +484,21 @@ System.Net.Http.Headers.HttpResponseHeaders - To be added. - To be added. - To be added. + Gets the collection of trailing headers included in an HTTP response. + The collection of trailing headers in the HTTP response. + + instance if it is accessed and the response content has not been read completely. + +For additional information on trailing headers, see [RFC 7230 - 4.1.2. Chunked Trailer Part](https://tools.ietf.org/html/rfc7230#section-4.1.2). + + ]]> + + PROTOCOL_ERROR: The HTTP/2 response contains pseudo-headers in the Trailing Headers Frame. @@ -520,4 +532,4 @@ - \ No newline at end of file +