Share via


HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method

 

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent)

Reads the HttpContent as an HttpRequestMessage.

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String)

Reads the HttpContent as an HttpRequestMessage.

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String, Int32)

Reads the HttpContent as an HttpRequestMessage.

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String, Int32, CancellationToken)

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String, Int32, Int32)

Reads the HttpContent as an HttpRequestMessage.

System_CAPS_pubmethodSystem_CAPS_static ReadAsHttpRequestMessageAsync(HttpContent, String, Int32, Int32, CancellationToken)

See Also

HttpContentMessageExtensions Class
System.Net.Http Namespace

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent)

Reads the HttpContent as an HttpRequestMessage.

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent
) As Task(Of HttpRequestMessage)

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

The parsed HttpRequestMessage instance.

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, CancellationToken)

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    CancellationToken cancellationToken
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        cancellationToken:CancellationToken -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    cancellationToken As CancellationToken
) As Task(Of HttpRequestMessage)

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String)

Reads the HttpContent as an HttpRequestMessage.

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String
) As Task(Of HttpRequestMessage)

Parameters

  • uriScheme
    Type: System.String

    The URI scheme to use for the request URI.

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

The parsed HttpRequestMessage instance.

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String, CancellationToken)

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme,
    CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme,
    CancellationToken cancellationToken
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string *
        cancellationToken:CancellationToken -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String,
    cancellationToken As CancellationToken
) As Task(Of HttpRequestMessage)

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String, Int32)

Reads the HttpContent as an HttpRequestMessage.

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme,
    int bufferSize
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme,
    int bufferSize
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string *
        bufferSize:int -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String,
    bufferSize As Integer
) As Task(Of HttpRequestMessage)

Parameters

  • uriScheme
    Type: System.String

    The URI scheme to use for the request URI.

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

The parsed HttpRequestMessage instance.

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String, Int32, CancellationToken)

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme,
    int bufferSize,
    CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme,
    int bufferSize,
    CancellationToken cancellationToken
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string *
        bufferSize:int *
        cancellationToken:CancellationToken -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String,
    bufferSize As Integer,
    cancellationToken As CancellationToken
) As Task(Of HttpRequestMessage)

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String, Int32, Int32)

Reads the HttpContent as an HttpRequestMessage.

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme,
    int bufferSize,
    int maxHeaderSize
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme,
    int bufferSize,
    int maxHeaderSize
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string *
        bufferSize:int *
        maxHeaderSize:int -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String,
    bufferSize As Integer,
    maxHeaderSize As Integer
) As Task(Of HttpRequestMessage)

Parameters

  • uriScheme
    Type: System.String

    The URI scheme to use for the request URI.

  • maxHeaderSize
    Type: System.Int32

    The maximum length of the HTTP header.

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

The parsed HttpRequestMessage instance.

Return to top

HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method (HttpContent, String, Int32, Int32, CancellationToken)

Syntax

public static Task<HttpRequestMessage> ReadAsHttpRequestMessageAsync(
    this HttpContent content,
    string uriScheme,
    int bufferSize,
    int maxHeaderSize,
    CancellationToken cancellationToken
)
public:
[ExtensionAttribute]
static Task<HttpRequestMessage^>^ ReadAsHttpRequestMessageAsync(
    HttpContent^ content,
    String^ uriScheme,
    int bufferSize,
    int maxHeaderSize,
    CancellationToken cancellationToken
)
static member ReadAsHttpRequestMessageAsync : 
        content:HttpContent *
        uriScheme:string *
        bufferSize:int *
        maxHeaderSize:int *
        cancellationToken:CancellationToken -> Task<HttpRequestMessage>
<ExtensionAttribute>
Public Shared Function ReadAsHttpRequestMessageAsync (
    content As HttpContent,
    uriScheme As String,
    bufferSize As Integer,
    maxHeaderSize As Integer,
    cancellationToken As CancellationToken
) As Task(Of HttpRequestMessage)

Parameters

Return Value

Type: System.Threading.Tasks.Task<HttpRequestMessage>

Return to top