Skip to content

Commit 8275581

Browse files
Update httpclient.md
1 parent 00d9f94 commit 8275581

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/fundamentals/networking/http/httpclient.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ The code completes the following tasks:
170170

171171
#### Create the HTTP POST request as JSON
172172

173-
To automatically serialize `POST` request arguments and deserialize responses into strongly typed C# objects, use the <xref:System.Net.Http.Json.HttpClientJsonExtensions.PostAsJsonAsync%2A> extension method that's part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
173+
To automatically serialize `POST` request arguments and deserialize responses into strongly typed C# objects, use the <xref:System.Net.Http.Json.HttpClientJsonExtensions.PostAsJsonAsync%2A> and the
174+
<xref:System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync%2A> extension methods respectively, which are part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
174175

175176
:::code source="../snippets/httpclient/Program.PostAsJson.cs" id="postasjson":::
176177

@@ -194,7 +195,8 @@ The code completes the following tasks:
194195

195196
#### Create the HTTP PUT request as JSON
196197

197-
To automatically serialize `PUT` request arguments and deserialize responses into strongly typed C# objects, use the <xref:System.Net.Http.Json.HttpClientJsonExtensions.PutAsJsonAsync%2A> extension method that's part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
198+
To automatically serialize `PUT` request arguments and deserialize responses into strongly typed C# objects, use the <xref:System.Net.Http.Json.HttpClientJsonExtensions.PutAsJsonAsync%2A> and the
199+
<xref:System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync%2A> extension methods respectively, which are part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
198200

199201
:::code source="../snippets/httpclient/Program.PutAsJson.cs" id="putasjson":::
200202

0 commit comments

Comments
 (0)