You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<paramname="cancellationToken">To be added.</param>
160
-
<summary>To be added.</summary>
161
-
<returns>To be added.</returns>
162
-
<remarks>To be added.</remarks>
159
+
<paramname="cancellationToken">The cancellation token to cancel the operation.</param>
160
+
<summary>Creates an HTTP content stream for reading. It uses the memory from the <seecref="T:System.Net.Http.ByteArrayContent" /> as a backing store.</summary>
161
+
<returns>The HTTP content stream.</returns>
162
+
<remarks>
163
+
<formattype="text/markdown"><![CDATA[
164
+
165
+
## Remarks
166
+
This operation blocks until all of the content stream has been created.
<paramname="cancellationToken">To be added.</param>
226
-
<summary>To be added.</summary>
227
-
<returns>To be added.</returns>
228
-
<remarks>To be added.</remarks>
224
+
<paramname="request">The HTTP request message to send to the server.</param>
225
+
<paramname="cancellationToken">A cancellation token to cancel operation.</param>
226
+
<summary>Sends an HTTP request to the inner handler to send to the server.</summary>
227
+
<returns>An HTTP response message.</returns>
228
+
<remarks>
229
+
<formattype="text/markdown"><![CDATA[
230
+
231
+
## Remarks
232
+
This operation blocks until the entire response, including content, is read.
233
+
234
+
The <xref:System.Net.Http.DelegatingHandler.Send%2A> method is mainly used by the system and not by applications. When this method is called, it calls the <xref:System.Net.Http.DelegatingHandler.Send%2A> method on the inner handler.
<paramname="request">The HTTP request message to send.</param>
2696
+
<summary>Sends an HTTP request with the specified request.</summary>
2697
+
<returns>An HTTP response message.</returns>
2698
+
<remarks>
2699
+
<formattype="text/markdown"><![CDATA[
2700
+
2701
+
## Remarks
2702
+
This operation blocks until the entire response, including content, is read.
2703
+
2704
+
]]></format>
2705
+
</remarks>
2706
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="request" /> is <seelangword="null" />.</exception>
2707
+
<exceptioncref="T:System.NotSupportedException">The HTTP version is 2.0 or higher or the version policy is set to <seecref="F:System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher" />.
2708
+
2709
+
-or-
2710
+
2711
+
The custom class derived from <seecref="T:System.Net.Http.HttpContent" /> does not override the <seecref="M:System.Net.Http.HttpContent.SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)" /> method.
2712
+
2713
+
-or-
2714
+
2715
+
The custom <seecref="T:System.Net.Http.HttpMessageHandler" /> does not override the <seecref="M:System.Net.Http.HttpMessageHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method.</exception>
2716
+
<exceptioncref="T:System.InvalidOperationException">The request message was already sent by the <seecref="T:System.Net.Http.HttpClient" /> instance.</exception>
2717
+
<exceptioncref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, or server certificate validation.</exception>
2718
+
<exceptioncref="T:System.Threading.Tasks.TaskCanceledException">If the <seecref="T:System.Threading.Tasks.TaskCanceledException" /> exception nests the <seecref="T:System.TimeoutException" />:
2719
+
The request failed due to timeout.</exception>
2699
2720
</Docs>
2700
2721
</Member>
2701
2722
<MemberMemberName="Send">
@@ -2721,11 +2742,32 @@ The <paramref name="requestUri" /> is not an absolute URI.
<paramname="completionOption">To be added.</param>
2726
-
<summary>To be added.</summary>
2727
-
<returns>To be added.</returns>
2728
-
<remarks>To be added.</remarks>
2745
+
<paramname="request">The HTTP request message to send.</param>
2746
+
<paramname="completionOption">One of the enumeration values that specifies when the operation should complete (as soon as a response is available or after reading the response content).</param>
2747
+
<summary>Sends an HTTP request.</summary>
2748
+
<returns>The HTTP response message.</returns>
2749
+
<remarks>
2750
+
<formattype="text/markdown"><![CDATA[
2751
+
2752
+
## Remarks
2753
+
This operation blocks until the entire response, including content, is read.
2754
+
2755
+
]]></format>
2756
+
</remarks>
2757
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="request" /> is <seelangword="null" />.</exception>
2758
+
<exceptioncref="T:System.NotSupportedException">The HTTP version is 2.0 or higher or the version policy is set to <seecref="F:System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher" />.
2759
+
2760
+
-or-
2761
+
2762
+
The custom class derived from <seecref="T:System.Net.Http.HttpContent" /> does not override the <seecref="M:System.Net.Http.HttpContent.SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)" /> method.
2763
+
2764
+
-or-
2765
+
2766
+
The custom <seecref="T:System.Net.Http.HttpMessageHandler" /> does not override the <seecref="M:System.Net.Http.HttpMessageHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method.</exception>
2767
+
<exceptioncref="T:System.InvalidOperationException">The request message was already sent by the <seecref="T:System.Net.Http.HttpClient" /> instance.</exception>
2768
+
<exceptioncref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, or server certificate validation.</exception>
2769
+
<exceptioncref="T:System.Threading.Tasks.TaskCanceledException">If the <seecref="T:System.Threading.Tasks.TaskCanceledException" /> exception nests the <seecref="T:System.TimeoutException" />:
2770
+
The request failed due to timeout.</exception>
2729
2771
</Docs>
2730
2772
</Member>
2731
2773
<MemberMemberName="Send">
@@ -2751,11 +2793,36 @@ The <paramref name="requestUri" /> is not an absolute URI.
<paramname="cancellationToken">To be added.</param>
2756
-
<summary>To be added.</summary>
2757
-
<returns>To be added.</returns>
2758
-
<remarks>To be added.</remarks>
2796
+
<paramname="request">The HTTP request message to send.</param>
2797
+
<paramname="cancellationToken">The token to cancel the operation.</param>
2798
+
<summary>Sends an HTTP request with the specified request and cancellation token.</summary>
2799
+
<returns>The HTTP response message.</returns>
2800
+
<remarks>
2801
+
<formattype="text/markdown"><![CDATA[
2802
+
2803
+
## Remarks
2804
+
This operation blocks until the entire response, including content, is read or `cancellationToken` cancels the operation.
2805
+
2806
+
]]></format>
2807
+
</remarks>
2808
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="request" /> is <seelangword="null" />.</exception>
2809
+
<exceptioncref="T:System.NotSupportedException">The HTTP version is 2.0 or higher or the version policy is set to <seecref="F:System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher" />.
2810
+
2811
+
-or-
2812
+
2813
+
The custom class derived from <seecref="T:System.Net.Http.HttpContent" /> does not override the <seecref="M:System.Net.Http.HttpContent.SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)" /> method.
2814
+
2815
+
-or-
2816
+
2817
+
The custom <seecref="T:System.Net.Http.HttpMessageHandler" /> does not override the <seecref="M:System.Net.Http.HttpMessageHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method.</exception>
2818
+
<exceptioncref="T:System.InvalidOperationException">The request message was already sent by the <seecref="T:System.Net.Http.HttpClient" /> instance.</exception>
2819
+
<exceptioncref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, or server certificate validation.</exception>
2820
+
<exceptioncref="T:System.Threading.Tasks.TaskCanceledException">The request was canceled.
2821
+
2822
+
-or-
2823
+
2824
+
If the <seecref="T:System.Threading.Tasks.TaskCanceledException" /> exception nests the <seecref="T:System.TimeoutException" />:
2825
+
The request failed due to timeout.</exception>
2759
2826
</Docs>
2760
2827
</Member>
2761
2828
<MemberMemberName="Send">
@@ -2782,12 +2849,37 @@ The <paramref name="requestUri" /> is not an absolute URI.
<paramname="completionOption">To be added.</param>
2787
-
<paramname="cancellationToken">To be added.</param>
2788
-
<summary>To be added.</summary>
2789
-
<returns>To be added.</returns>
2790
-
<remarks>To be added.</remarks>
2852
+
<paramname="request">The HTTP request message to send.</param>
2853
+
<paramname="completionOption">One of the enumeration values that specifies when the operation should complete (as soon as a response is available or after reading the response content).</param>
2854
+
<paramname="cancellationToken">The token to cancel the operation.</param>
2855
+
<summary>Sends an HTTP request with the specified request, completion option and cancellation token.</summary>
2856
+
<returns>The HTTP response message.</returns>
2857
+
<remarks>
2858
+
<formattype="text/markdown"><![CDATA[
2859
+
2860
+
## Remarks
2861
+
This operation blocks until the entire response, including content, is read or `cancellationToken` cancels the operation.
2862
+
2863
+
]]></format>
2864
+
</remarks>
2865
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="request" /> is <seelangword="null" />.</exception>
2866
+
<exceptioncref="T:System.NotSupportedException">The HTTP version is 2.0 or higher or the version policy is set to <seecref="F:System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher" />.
2867
+
2868
+
-or-
2869
+
2870
+
The custom class derived from <seecref="T:System.Net.Http.HttpContent" /> does not override the <seecref="M:System.Net.Http.HttpContent.SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)" /> method.
2871
+
2872
+
-or-
2873
+
2874
+
The custom <seecref="T:System.Net.Http.HttpMessageHandler" /> does not override the <seecref="M:System.Net.Http.HttpMessageHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method.</exception>
2875
+
<exceptioncref="T:System.InvalidOperationException">The request message was already sent by the <seecref="T:System.Net.Http.HttpClient" /> instance.</exception>
2876
+
<exceptioncref="T:System.Net.Http.HttpRequestException">The request failed due to an underlying issue such as network connectivity, DNS failure, or server certificate validation.</exception>
2877
+
<exceptioncref="T:System.Threading.Tasks.TaskCanceledException">The request was canceled.
2878
+
2879
+
-or-
2880
+
2881
+
If the <seecref="T:System.Threading.Tasks.TaskCanceledException" /> exception nests the <seecref="T:System.TimeoutException" />:
<paramname="cancellationToken">A cancellation token to cancel the operation.</param>
867
+
<summary>Creates an instance of <seecref="T:System.Net.Http.HttpResponseMessage" /> based on the information provided in the <seecref="T:System.Net.Http.HttpRequestMessage" />.</summary>
868
+
<returns>The HTTP response message.</returns>
869
+
<remarks>
870
+
<formattype="text/markdown"><![CDATA[
871
+
872
+
## Remarks
873
+
This operation blocks until the response message is read.
874
+
875
+
]]></format>
876
+
</remarks>
877
+
<exceptioncref="T:System.ArgumentNullException">The <paramrefname="request" /> was <seelangword="null" />.</exception>
878
+
<exceptioncref="T:System.NotSupportedException">For HTTP/2 and higher or when requesting version upgrade is enabled by <seecref="F:System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher" />.
879
+
880
+
-or-
881
+
882
+
If using custom class derived from <seecref="T:System.Net.Http.HttpContent" /> not overriding <seecref="M:System.Net.Http.HttpContent.SerializeToStream(System.IO.Stream,System.Net.TransportContext,System.Threading.CancellationToken)" /> method.
883
+
884
+
-or-
885
+
886
+
If using custom <seecref="T:System.Net.Http.HttpMessageHandler" /> not overriding <seecref="M:System.Net.Http.HttpMessageHandler.Send(System.Net.Http.HttpRequestMessage,System.Threading.CancellationToken)" /> method.</exception>
887
+
<exceptioncref="T:System.Threading.Tasks.TaskCanceledException">The request was canceled.
888
+
889
+
-or-
890
+
891
+
If the <seecref="T:System.Threading.Tasks.TaskCanceledException" /> exception nests the <seecref="T:System.TimeoutException" />:
<paramname="cancellationToken">To be added.</param>
970
-
<summary>To be added.</summary>
971
-
<remarks>To be added.</remarks>
989
+
<paramname="stream">The target stream.</param>
990
+
<paramname="context">Information about the transport (for example, the channel binding token). This parameter may be <seelangword="null" />.</param>
991
+
<paramname="cancellationToken">The cancellation token to cancel the operation.</param>
992
+
<summary>When overridden in a derived class, serializes the HTTP content to a stream. Otherwise, throws a <seecref="T:System.NotImplementedException" />.</summary>
993
+
<remarks>
994
+
<formattype="text/markdown"><![CDATA[
995
+
996
+
## Remarks
997
+
This operation blocks until all of the content has been serialized to the stream object.
998
+
999
+
]]></format>
1000
+
</remarks>
1001
+
<exceptioncref="T:System.NotImplementedException">The method is not overridden in the derived class.</exception>
0 commit comments