Class DeserializedHttpResponse
Provides utility methods serializing HTTP responses.
Inheritance
System.Object
DeserializedHttpResponse
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: DocuWare.Services.Http
Assembly: DocuWare.RestClient.dll
Syntax
public static class DeserializedHttpResponse
Properties
Type2Serializer
Maps types to its XML serializer.
Declaration
public static XmlSerializerRepository Type2Serializer { get; }
Property Value
| Type | Description |
|---|---|
| XmlSerializerRepository |
Methods
CreateAsync<T>(HttpResponseMessage)
Creates the specified response asynchronously.
Declaration
public static Task<DeserializedHttpResponse<T>> CreateAsync<T>(HttpResponseMessage response)
where T : class
Parameters
| Type | Name | Description |
|---|---|---|
| System.Net.Http.HttpResponseMessage | response | The response. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<T>> |
Type Parameters
| Name | Description |
|---|---|
| T |