HttpContentMessageExtensions.ReadAsHttpRequestMessageAsync Method
Namespace: System.Net.Http
Assembly: System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Overload List
Name | Description | |
---|---|---|
ReadAsHttpRequestMessageAsync(HttpContent) | Reads the HttpContent as an HttpRequestMessage. |
|
ReadAsHttpRequestMessageAsync(HttpContent, CancellationToken) | ||
ReadAsHttpRequestMessageAsync(HttpContent, String) | Reads the HttpContent as an HttpRequestMessage. |
|
ReadAsHttpRequestMessageAsync(HttpContent, String, CancellationToken) | ||
ReadAsHttpRequestMessageAsync(HttpContent, String, Int32) | Reads the HttpContent as an HttpRequestMessage. |
|
ReadAsHttpRequestMessageAsync(HttpContent, String, Int32, CancellationToken) | ||
ReadAsHttpRequestMessageAsync(HttpContent, String, Int32, Int32) | Reads the HttpContent as an HttpRequestMessage. |
|
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
content
Type: System.Net.Http.HttpContentThe content to read.
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
- content
Type: System.Net.Http.HttpContent
- cancellationToken
Type: System.Threading.CancellationToken
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
content
Type: System.Net.Http.HttpContentThe content to read.
uriScheme
Type: System.StringThe 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
- content
Type: System.Net.Http.HttpContent
- uriScheme
Type: System.String
- cancellationToken
Type: System.Threading.CancellationToken
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
content
Type: System.Net.Http.HttpContentThe content to read.
uriScheme
Type: System.StringThe URI scheme to use for the request URI.
bufferSize
Type: System.Int32The size of the buffer.
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
- content
Type: System.Net.Http.HttpContent
- uriScheme
Type: System.String
- bufferSize
Type: System.Int32
- cancellationToken
Type: System.Threading.CancellationToken
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
content
Type: System.Net.Http.HttpContentThe content to read.
uriScheme
Type: System.StringThe URI scheme to use for the request URI.
bufferSize
Type: System.Int32The size of the buffer.
maxHeaderSize
Type: System.Int32The 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
- content
Type: System.Net.Http.HttpContent
- uriScheme
Type: System.String
- bufferSize
Type: System.Int32
- maxHeaderSize
Type: System.Int32
- cancellationToken
Type: System.Threading.CancellationToken
Return Value
Type: System.Threading.Tasks.Task<HttpRequestMessage>
Return to top