Class HttpClientExtensions
Extension methods to aid deserialization
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DynamicRestProxy.PortableHttpClient
Assembly: DynamicRestProxy.NetStandard.dll
Syntax
public static class HttpClientExtensions
Methods
| Improve this Doc View SourceDeserialize<T>(HttpResponseMessage, JsonSerializerSettings)
Helper method to deserialize content in a number of diferent ways
Declaration
public static Task<T> Deserialize<T>(this HttpResponseMessage response, JsonSerializerSettings settings)
Parameters
Type | Name | Description |
---|---|---|
HttpResponseMessage | response | An HttpResponseMessage to deserialize |
Newtonsoft.Json.JsonSerializerSettings | settings | Json settings to control deserialization |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<T> | content deserialized to type T |
Type Parameters
Name | Description |
---|---|
T | The type to deserialize to Stream String System.Byte[] array ExpandoObject when T is dynamic or other POCO types |