Skip to content

Commit 8e2fb40

Browse files
Update httpclient.md (#48217)
* Update httpclient.md * Update httpclient.md some grammatical fixes. * Fix formatting in HTTP client documentation --------- Co-authored-by: Meaghan Osagie (Lewis) <[email protected]>
1 parent 86c5a92 commit 8e2fb40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/fundamentals/networking/http/httpclient.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ 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 <xref:System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync%2A> extension methods, respectively, that are part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
174174

175175
:::code source="../snippets/httpclient/Program.PostAsJson.cs" id="postasjson":::
176176

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

195195
#### Create the HTTP PUT request as JSON
196196

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.
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> and the
198+
<xref:System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync%2A> extension methods, respectively, that are part of the [System.Net.Http.Json](https://www.nuget.org/packages/System.Net.Http.Json) NuGet package.
198199

199200
:::code source="../snippets/httpclient/Program.PutAsJson.cs" id="putasjson":::
200201

0 commit comments

Comments
 (0)