From a0dc465a5f55a699e6cc960f8056c1e1a66b87e7 Mon Sep 17 00:00:00 2001 From: ManickaP Date: Wed, 8 Sep 2021 19:21:01 +0200 Subject: [PATCH 1/2] Ported docs from https://github.com/dotnet/runtime/pull/57855 --- .../HeaderEncodingSelector`1.xml | 2 +- xml/System.Net.Http/HttpContent.xml | 19 +++++++++++++++---- xml/System.Net.Http/SocketsHttpHandler.xml | 2 +- xml/System.Net.Security/NegotiateStream.xml | 4 ++-- .../SslApplicationProtocol.xml | 2 +- 5 files changed, 20 insertions(+), 9 deletions(-) diff --git a/xml/System.Net.Http/HeaderEncodingSelector`1.xml b/xml/System.Net.Http/HeaderEncodingSelector`1.xml index 932c2de1b4b..d8519a66824 100644 --- a/xml/System.Net.Http/HeaderEncodingSelector`1.xml +++ b/xml/System.Net.Http/HeaderEncodingSelector`1.xml @@ -24,7 +24,7 @@ System.Text.Encoding - To be added. + The type which headers are being encoded/decoded; The name of the header to specify for the encoding. The type we are encoding/decoding the headers for. Represents a method that specifies the encoding to use when interpreting header values. diff --git a/xml/System.Net.Http/HttpContent.xml b/xml/System.Net.Http/HttpContent.xml index c2acd9a919a..336270efc40 100644 --- a/xml/System.Net.Http/HttpContent.xml +++ b/xml/System.Net.Http/HttpContent.xml @@ -311,10 +311,21 @@ - To be added. - To be added. - To be added. - To be added. + The cancellation token to cancel the operation. + Serializes the HTTP content to a memory stream. + The output memory stream which contains the serialized HTTP content. + + method buffers the content to a memory stream. + Derived classes can override this behavior if there is a better way to retrieve the content as stream. + For example, a byte array or a string could use a more efficient method way such as wrapping a read-only MemoryStream around the bytes or string. + + ]]> + diff --git a/xml/System.Net.Http/SocketsHttpHandler.xml b/xml/System.Net.Http/SocketsHttpHandler.xml index 563c084b93d..693d63c2f33 100644 --- a/xml/System.Net.Http/SocketsHttpHandler.xml +++ b/xml/System.Net.Http/SocketsHttpHandler.xml @@ -768,7 +768,7 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r System.Collections.Generic.IDictionary<System.String,System.Object> - To be added. + Gets a writable dictionary (that is, a map) of custom properties for the HttpClient requests. The dictionary is initialized empty; you can insert and query key-value pairs for your custom handlers and special processing. To be added. To be added. diff --git a/xml/System.Net.Security/NegotiateStream.xml b/xml/System.Net.Security/NegotiateStream.xml index 0c87966e287..79e9868992b 100644 --- a/xml/System.Net.Security/NegotiateStream.xml +++ b/xml/System.Net.Security/NegotiateStream.xml @@ -4131,7 +4131,7 @@ This method reads asynchronously as much data as is available into `buffer` and A region of memory that contains the data to write to the . The token to monitor for cancellation requests. Write asynchronously the specified number of s to the underlying stream. - To be added. + A that represents the asynchronous read operation. A containing the number of bytes to read from . To be added. Write asynchronously the specified number of s to the underlying stream. - To be added. + A that represents the asynchronous read operation. System.Net.Security.SslApplicationProtocol - To be added. + Defines a instance for HTTP 3.0. To be added. From 7e86e1d00d4592820458c96b063fdb9914f31f4d Mon Sep 17 00:00:00 2001 From: Carlos Sanchez <1175054+carlossanlop@users.noreply.github.com> Date: Wed, 8 Sep 2021 12:24:54 -0700 Subject: [PATCH 2/2] Update xml/System.Net.Http/HeaderEncodingSelector`1.xml --- xml/System.Net.Http/HeaderEncodingSelector`1.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Net.Http/HeaderEncodingSelector`1.xml b/xml/System.Net.Http/HeaderEncodingSelector`1.xml index d8519a66824..8da6264f7a1 100644 --- a/xml/System.Net.Http/HeaderEncodingSelector`1.xml +++ b/xml/System.Net.Http/HeaderEncodingSelector`1.xml @@ -24,7 +24,7 @@ System.Text.Encoding - The type which headers are being encoded/decoded; + The type of the headers that are being encoded/decoded. The name of the header to specify for the encoding. The type we are encoding/decoding the headers for. Represents a method that specifies the encoding to use when interpreting header values.