Class HttpContentExtensions
Extension methods for the class.
Inheritance
object
HttpContentExtensions
Namespace: StylelabsStylelabs.MSdkWebClientHttp
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
Methods
ReadAsJsonAsync(HttpContent)
Reads the content as a .
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContent | content | The . |
Returns
| Type | Description |
|---|---|
| Task<>JToken | An . |
ReadAsJsonAsync(HttpContent)
Parses the content as json and deserializes it to T.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContent | content | The . |
Returns
| Type | Description |
|---|---|
| Task<> | The response as json. |
Type Parameters
| Name | Description |
|---|---|
| T | Type to deserialize to. |
If you have suggestions for improving this article, let us know!