Show / Hide Table of Contents

    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
    DeserializedHttpResponse<System.IO.Stream> response

    The response.

    Returns
    Type Description
    System.String

    The file name of the HTTP response.

    Exceptions
    Type Condition
    System.ArgumentException

    Response does not contain file name header.

    System.ArgumentNullException

    If response is null.

    GetFileNameSafe(DeserializedHttpResponse<Stream>)

    Gets the file name of the HTTP response.

    Declaration
    public static string GetFileNameSafe(this DeserializedHttpResponse<Stream> response)
    Parameters
    Type Name Description
    DeserializedHttpResponse<System.IO.Stream> response

    The response.

    Returns
    Type Description
    System.String

    The file name of the HTTP response. If the response does not contain a file name, null is returned.

    Exceptions
    Type Condition
    System.ArgumentNullException

    If response is null.

    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.Threading.Tasks.Task<DeserializedHttpResponse<T>> response
    Returns
    Type Description
    System.Threading.Tasks.Task<T>
    Type Parameters
    Name Description
    T
    About Us Contact Imprint Terms Data privacy
    © 2024 DocuWare Corporation powered by DocFX Back to top