Skip to content

Add language slugs (System.Net) #11225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions xml/System.Net.Http.Headers/AuthenticationHeaderValue.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@
<Docs>
<summary>Represents authentication information in Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate header values.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Net.Http.Headers.AuthenticationHeaderValue> class provides support for the Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate HTTP header values as defined in [RFC 2616](https://go.microsoft.com/fwlink/?LinkID=241642) by the IETF.
<format type="text/markdown"><![CDATA[

## Remarks
The <xref:System.Net.Http.Headers.AuthenticationHeaderValue> class provides support for the Authorization, ProxyAuthorization, WWW-Authenticate, and Proxy-Authenticate HTTP header values as defined in [RFC 2616](https://go.microsoft.com/fwlink/?LinkID=241642) by the IETF.

]]></format>
</remarks>
</Docs>
Expand Down Expand Up @@ -111,8 +111,9 @@
<param name="scheme">The scheme to use for authorization.</param>
<summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
<format type="text/markdown"><![CDATA[
Example:

```csharp
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCESS_TOKEN);
Expand All @@ -124,7 +125,8 @@ client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(ACCES
```

Will produce the following header:
```

```txt
Authorization: ACCESS_TOKEN
```

Expand Down Expand Up @@ -177,8 +179,9 @@ Authorization: ACCESS_TOKEN
<param name="parameter">The credentials containing the authentication information of the user agent for the resource being requested.</param>
<summary>Initializes a new instance of the <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> class.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
<format type="text/markdown"><![CDATA[
Example:

```csharp
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", ACCESS_TOKEN);
Expand All @@ -190,7 +193,8 @@ client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bear
```

Will produce the following header:
```

```txt
Authorization: Bearer ACCESS_TOKEN
```
]]></format>
Expand Down Expand Up @@ -283,13 +287,13 @@ Authorization: Bearer ACCESS_TOKEN
<summary>Serves as a hash function for an <see cref="T:System.Net.Http.Headers.AuthenticationHeaderValue" /> object.</summary>
<returns>A hash code for the current object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
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.
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.
<format type="text/markdown"><![CDATA[

## Remarks
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.

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.

]]></format>
</remarks>
</Docs>
Expand Down
2 changes: 1 addition & 1 deletion xml/System.Net.Http/HttpClientHandler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ If the <xref:System.Net.Http.HttpClientHandler.UseDefaultCredentials> property h

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:

```cs
```csharp
handler.ServerCertificateCustomValidationCallback = HttpClientHandler.DangerousAcceptAnyServerCertificateValidator;
```

Expand Down
1 change: 1 addition & 0 deletions xml/System.Net.Http/SocketsHttpHandler.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ If this change is undesirable and you are on .NET Core 2.1-3.1, you can configur
```vb
AppContext.SetSwitch("System.Net.Http.UseSocketsHttpHandler", False)
```

- By defining the `System.Net.Http.UseSocketsHttpHandler` switch in the *.netcore.runtimeconfig.json* configuration file:

```json
Expand Down