Class DeserializedHttpResponseExtensions
Inheritance
System.Object
DeserializedHttpResponseExtensions
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 DeserializedHttpResponseExtensions
Methods
GetFileName(DeserializedHttpResponse<Stream>)
Gets the file name of the HTTP response.
Declaration
public static string GetFileName(this DeserializedHttpResponse<Stream> response)
Parameters
Type | Name | Description |
---|---|---|
Deserialized |
response | The response. |
Returns
Type | Description |
---|---|
System. |
The file name of the HTTP response. |
Exceptions
Type | Condition |
---|---|
System. |
Response does not contain file name header. |
System. |
If |
GetFileNameSafe(DeserializedHttpResponse<Stream>)
Gets the file name of the HTTP response.
Declaration
public static string GetFileNameSafe(this DeserializedHttpResponse<Stream> response)
Parameters
Type | Name | Description |
---|---|---|
Deserialized |
response | The response. |
Returns
Type | Description |
---|---|
System. |
The file name of the HTTP response. If the response does not contain a file name, |
Exceptions
Type | Condition |
---|---|
System. |
If |
ToContent<T>(Task<DeserializedHttpResponse<T>>)
Returns the content asynchronously.
Declaration
public static Task<T> ToContent<T>(this Task<DeserializedHttpResponse<T>> response)
where T : class
Parameters
Type | Name | Description |
---|---|---|
System. |
response |
Returns
Type | Description |
---|---|
System. |
Type Parameters
Name | Description |
---|---|
T |