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
Copy file name to clipboardExpand all lines: xml/System.Net.Http/SocketsHttpHandler.xml
+58-21Lines changed: 58 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ If this change is undesirable, you can configure your application to use the old
70
70
</AssemblyInfo>
71
71
<Parameters />
72
72
<Docs>
73
-
<summary>To be added.</summary>
73
+
<summary>Creates an instance of a <seecref="T:System.Net.Http.SocketsHttpHandler" /> class.</summary>
74
74
<remarks>To be added.</remarks>
75
75
</Docs>
76
76
</Member>
@@ -92,9 +92,25 @@ If this change is undesirable, you can configure your application to use the old
92
92
<ReturnType>System.Boolean</ReturnType>
93
93
</ReturnValue>
94
94
<Docs>
95
-
<summary>To be added.</summary>
96
-
<value>To be added.</value>
97
-
<remarks>To be added.</remarks>
95
+
<summary>Gets or sets a value that indicates whether the handler should follow redirection responses.</summary>
96
+
<value>
97
+
<seelangword="true" /> if the handler should follow redirection responses; otherwise <seelangword="false" />. The default value is <seelangword="true" />.
98
+
</value>
99
+
<remarks>
100
+
<formattype="text/markdown"><![CDATA[
101
+
102
+
## Remarks
103
+
Set <xref:System.Net.Http.SocketsHttpHandler.AllowAutoRedirect%2A> to `true` if you want the handler to automatically follow HTTP redirection headers to the new location of the resource. The maximum number of redirections to follow is set by the <xref:System.Net.Http.SocketsHttpHandler.MaxAutomaticRedirections%2A> property.
104
+
105
+
If <xref:System.Net.Http.SocketsHttpHandler.AllowAutoRedirect%2A> is set to `false`, all HTTP responses with an HTTP status code from 300 to 399 are returned to the application.
106
+
107
+
The Authorization header is cleared on auto-redirects and the handler automatically tries to re-authenticate to the redirected location. In practice, this means that an application can't put custom authentication information into the Authorization header if it is possible to encounter redirection. Instead, the application must implement and register a custom authentication module.
108
+
109
+
> [!NOTE]
110
+
> The handler never follows a redirection from HTTPS to HTTP even if <xref:System.Net.Http.SocketsHttpHandler.AllowAutoRedirect%2A> is set to `true`.
111
+
112
+
]]></format>
113
+
</remarks>
98
114
</Docs>
99
115
</Member>
100
116
<MemberMemberName="AutomaticDecompression">
@@ -138,8 +154,8 @@ If this change is undesirable, you can configure your application to use the old
138
154
<ReturnType>System.TimeSpan</ReturnType>
139
155
</ReturnValue>
140
156
<Docs>
141
-
<summary>To be added.</summary>
142
-
<value>To be added.</value>
157
+
<summary>Gets or sets the timespan to wait before the connection establishing times out.</summary>
158
+
<value>The timespan to wait before the connection establishing times out. The default value is <seecref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</value>
143
159
<remarks>To be added.</remarks>
144
160
</Docs>
145
161
</Member>
@@ -184,8 +200,8 @@ If this change is undesirable, you can configure your application to use the old
184
200
<ReturnType>System.Net.ICredentials</ReturnType>
185
201
</ReturnValue>
186
202
<Docs>
187
-
<summary>To be added.</summary>
188
-
<value>To be added.</value>
203
+
<summary>Gets or sets authentication information used by this handler.</summary>
204
+
<value>The authentication credentials associated with the handler. The default value is <seelangword="null" />.</value>
189
205
<remarks>To be added.</remarks>
190
206
</Docs>
191
207
</Member>
@@ -262,9 +278,15 @@ The default proxy is used only when <xref:System.Net.Http.SocketsHttpHandler.Use
262
278
<ReturnType>System.TimeSpan</ReturnType>
263
279
</ReturnValue>
264
280
<Docs>
265
-
<summary>To be added.</summary>
266
-
<value>To be added.</value>
267
-
<remarks>To be added.</remarks>
281
+
<summary>Gets or sets the time-out value for server HTTP 100 Continue response.</summary>
282
+
<value>The timespan to wait for the HTTP 100 Continue. The default value is 1 second.</value>
283
+
<remarks>
284
+
<formattype="text/markdown"><![CDATA[
285
+
286
+
## Remarks
287
+
When request contain `Expect: 100-continue` header the server should respond HTTP status `100 Continue` before the client sends the body. <xref:System.Net.Http.SocketsHttpHandler.Expect100ContinueTimeout%2A?displayProperty=nameWithType> define the timeout for the `100 Continue` server response.
288
+
289
+
]]></format></remarks>
268
290
</Docs>
269
291
</Member>
270
292
<MemberMemberName="MaxAutomaticRedirections">
@@ -413,9 +435,18 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
413
435
<ReturnType>System.TimeSpan</ReturnType>
414
436
</ReturnValue>
415
437
<Docs>
416
-
<summary>To be added.</summary>
417
-
<value>To be added.</value>
418
-
<remarks>To be added.</remarks>
438
+
<summary>Gets or sets how long a connection can be the pool to be considered reusable.</summary>
439
+
<value>The maximum time for a connection to be in the pool. The default value for this property is <seecref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</value>
440
+
<remarks> <formattype="text/markdown"><![CDATA[
441
+
442
+
## Remarks
443
+
This property define maximal connection lifetime in the pool regardles the connection is idle or active. The connection is reestablished periodically to reflect the DNS or other network changes.
444
+
445
+
If the connection endpoint is not the Doamin name but the IP address, the value can be <xref:System.Threading.Timeout.InfiniteTimeSpan>.
446
+
447
+
]]></format>
448
+
</remarks>
449
+
<exceptioncref="T:System.ArgumentOutOfRangeException">The value specified is less than <seecref="F:System.TimeSpan.Zero" /> or is equal to <seecref="F:System.Threading.Timeout.InfiniteTimeSpan" />.</exception>
419
450
</Docs>
420
451
</Member>
421
452
<MemberMemberName="PreAuthenticate">
@@ -506,9 +537,15 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
506
537
<ReturnType>System.TimeSpan</ReturnType>
507
538
</ReturnValue>
508
539
<Docs>
509
-
<summary>To be added.</summary>
510
-
<value>To be added.</value>
511
-
<remarks>To be added.</remarks>
540
+
<summary>Gets or sets the timespan to wait for data to be drained from responses.</summary>
541
+
<value>The timespan to wait for data to be drained from responses.</value>
542
+
<remarks>
543
+
<formattype="text/markdown"><![CDATA[
544
+
545
+
Draining occurs when a request is cancelled or a response is disposed prior to fully reading the content. If the time exceeds the value, the connection will be closed rather than reused.
546
+
547
+
]]></format>
548
+
</remarks>
512
549
</Docs>
513
550
</Member>
514
551
<MemberMemberName="SendAsync">
@@ -581,8 +618,8 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
581
618
<ReturnType>System.Boolean</ReturnType>
582
619
</ReturnValue>
583
620
<Docs>
584
-
<summary>To be added.</summary>
585
-
<value>To be added.</value>
621
+
<summary>Gets or sets a value that indicates whether the handler should use cookies.</summary>
622
+
<value>A value that indicates whether the handler should use cookies.</value>
586
623
<remarks>To be added.</remarks>
587
624
</Docs>
588
625
</Member>
@@ -604,8 +641,8 @@ For example, if the value is 64, then 65,536 bytes are allowed for the maximum r
604
641
<ReturnType>System.Boolean</ReturnType>
605
642
</ReturnValue>
606
643
<Docs>
607
-
<summary>To be added.</summary>
608
-
<value>To be added.</value>
644
+
<summary>Gets or sets a value that indicates whether the handler should use a proxy.</summary>
645
+
<value>A value that indicates whether the handler should use a proxy.</value>
0 commit comments