Definition
Assembly: System.Net.Http.dll Namespace: System.Net.HttpSyntax
Summary
This type is defined in System.Net.Http.Remarks
See Microsoft documentation for more information about the rest of the API.Methods
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_NewtonsoftJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
Returns
Type:System.Threading.Tasks.Task<(T, string)>
A tuple containing either the deserialized response object or error content string.
Type Parameters
T- The type to deserialize the response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_NewtonsoftJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
settings | Newtonsoft.Json.JsonSerializerSettings | The JSON serializer settings to use for deserialization. |
Returns
Type:System.Threading.Tasks.Task<(T, string)>
A tuple containing either the deserialized response object or error content string.
Type Parameters
T- The type to deserialize the response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_NewtonsoftJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
Returns
Type:System.Threading.Tasks.Task<(TResponse, TError)>
A tuple containing either the deserialized response object or deserialized error object.
Type Parameters
TResponse- The type to deserialize successful response content to.TError- The type to deserialize error response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_NewtonsoftJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
settings | Newtonsoft.Json.JsonSerializerSettings | The JSON serializer settings to use for deserialization. |
Returns
Type:System.Threading.Tasks.Task<(TResponse, TError)>
A tuple containing either the deserialized response object or deserialized error object.
Type Parameters
TResponse- The type to deserialize successful response content to.TError- The type to deserialize error response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_SystemTextJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
Returns
Type:System.Threading.Tasks.Task<(T, string)>
A tuple containing either the deserialized response object or error content string.
Type Parameters
T- The type to deserialize the response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_SystemTextJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
settings | System.Text.Json.JsonSerializerOptions | The JSON serializer options to use for deserialization. |
Returns
Type:System.Threading.Tasks.Task<(T, string)>
A tuple containing either the deserialized response object or error content string.
Type Parameters
T- The type to deserialize the response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_SystemTextJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
Returns
Type:System.Threading.Tasks.Task<(TResponse, TError)>
A tuple containing either the deserialized response object or deserialized error object.
Type Parameters
TResponse- The type to deserialize successful response content to.TError- The type to deserialize error response content to.
DeserializeResponseAsync Extension
Extension method from
System.Net.Http.EasyAF_Http_SystemTextJson_HttpResponseMessageExtensionsSyntax
Parameters
| Name | Type | Description |
|---|---|---|
message | System.Net.Http.HttpResponseMessage | The HTTP response message to deserialize. |
settings | System.Text.Json.JsonSerializerOptions | The JSON serializer options to use for deserialization. |
Returns
Type:System.Threading.Tasks.Task<(TResponse, TError)>
A tuple containing either the deserialized response object or deserialized error object.
Type Parameters
TResponse- The type to deserialize successful response content to.TError- The type to deserialize error response content to.