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.Headers/AuthenticationHeaderValue.xml
+20-16
Original file line number
Diff line number
Diff line change
@@ -55,11 +55,11 @@
55
55
<Docs>
56
56
<summary>Represents authentication information in Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate header values.</summary>
57
57
<remarks>
58
-
<formattype="text/markdown">< by the IETF.
62
-
58
+
<formattype="text/markdown">< by the IETF.
62
+
63
63
]]></format>
64
64
</remarks>
65
65
</Docs>
@@ -111,8 +111,9 @@
111
111
<paramname="scheme">The scheme to use for authorization.</param>
112
112
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
113
113
<remarks>
114
-
<formattype="text/markdown"><![CDATA[
114
+
<formattype="text/markdown"><![CDATA[
115
115
Example:
116
+
116
117
```csharp
117
118
HttpClient client = new HttpClient();
118
119
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCESS_TOKEN);
@@ -124,7 +125,8 @@ client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCES
124
125
```
125
126
126
127
Will produce the following header:
127
-
```
128
+
129
+
```txt
128
130
Authorization: ACCESS_TOKEN
129
131
```
130
132
@@ -177,8 +179,9 @@ Authorization: ACCESS_TOKEN
177
179
<paramname="parameter">The credentials containing the authentication information of the user agent for the resource being requested.</param>
178
180
<summary>Initializes a new instance of the <seecref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
179
181
<remarks>
180
-
<formattype="text/markdown"><![CDATA[
182
+
<formattype="text/markdown"><![CDATA[
181
183
Example:
184
+
182
185
```csharp
183
186
HttpClient client = new HttpClient();
184
187
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", ACCESS_TOKEN);
@@ -190,7 +193,8 @@ client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bear
<summary>Serves as a hash function for an <seecref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> object.</summary>
284
288
<returns>A hash code for the current object.</returns>
285
289
<remarks>
286
-
<formattype="text/markdown"><![CDATA[
287
-
288
-
## Remarks
289
-
A hash code is a numeric value that is used to identify an object during equality testing. It can also serve as an index for an object in a collection.
290
-
291
-
The <xref:System.Net.Http.Headers.AuthenticationHeaderValue.GetHashCode%2A> method is suitable for use in hashing algorithms and data structures such as a hash table.
292
-
290
+
<formattype="text/markdown"><![CDATA[
291
+
292
+
## Remarks
293
+
A hash code is a numeric value that is used to identify an object during equality testing. It can also serve as an index for an object in a collection.
294
+
295
+
The <xref:System.Net.Http.Headers.AuthenticationHeaderValue.GetHashCode%2A> method is suitable for use in hashing algorithms and data structures such as a hash table.
Copy file name to clipboardExpand all lines: xml/System.Net.Http/HttpClientHandler.xml
+1-1
Original file line number
Diff line number
Diff line change
@@ -506,7 +506,7 @@ If the <xref:System.Net.Http.HttpClientHandler.UseDefaultCredentials> property h
506
506
507
507
The <xref:System.Net.Http.HttpClientHandler.DangerousAcceptAnyServerCertificateValidator%2A> property addresses this limitation. The delegate returned by the <xref:System.Net.Http.HttpClientHandler.DangerousAcceptAnyServerCertificateValidator%2A> property can be assigned to the <xref:System.Net.Http.HttpClientHandler.ServerCertificateCustomValidationCallback%2A> property, as the following example does:
0 commit comments