Compartilhar via


IAsAzureHttpClient.CallPostAsync Method

Definition

Overloads

CallPostAsync(String, HttpContent)

Calls SendRequestAsync() for a POST using the default BaseUri and a blank correlationId.

CallPostAsync(Uri, String, HttpContent)

Calls SendRequestAsync() for a POST using a blank correlationId.

CallPostAsync(Uri, String, Guid, HttpContent)

Calls SendRequestAsync() for a POST.

CallPostAsync(Uri, String, String, HttpContent)
CallPostAsync(Uri, String, String, Guid, HttpContent)

CallPostAsync(String, HttpContent)

Calls SendRequestAsync() for a POST using the default BaseUri and a blank correlationId.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> CallPostAsync (string requestURL, System.Net.Http.HttpContent content = default);
abstract member CallPostAsync : string * System.Net.Http.HttpContent -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function CallPostAsync (requestURL As String, Optional content As HttpContent = Nothing) As Task(Of HttpResponseMessage)

Parameters

requestURL
String

The Request Url.

content
HttpContent

The content to post (optional).

Returns

The http response message.

Applies to

CallPostAsync(Uri, String, HttpContent)

Calls SendRequestAsync() for a POST using a blank correlationId.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> CallPostAsync (Uri baseURI, string requestURL, System.Net.Http.HttpContent content = default);
abstract member CallPostAsync : Uri * string * System.Net.Http.HttpContent -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function CallPostAsync (baseURI As Uri, requestURL As String, Optional content As HttpContent = Nothing) As Task(Of HttpResponseMessage)

Parameters

baseURI
Uri

The base Uri to call.

requestURL
String

The request Url.

content
HttpContent

The content to post (optional).

Returns

The http response message.

Applies to

CallPostAsync(Uri, String, Guid, HttpContent)

Calls SendRequestAsync() for a POST.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> CallPostAsync (Uri baseURI, string requestURL, Guid correlationId, System.Net.Http.HttpContent content = default);
abstract member CallPostAsync : Uri * string * Guid * System.Net.Http.HttpContent -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function CallPostAsync (baseURI As Uri, requestURL As String, correlationId As Guid, Optional content As HttpContent = Nothing) As Task(Of HttpResponseMessage)

Parameters

baseURI
Uri

The base Uri to call.

requestURL
String

The request Url.

correlationId
Guid

The CorrelationId

content
HttpContent

The content to post (optional).

Returns

The http response message.

Applies to

CallPostAsync(Uri, String, String, HttpContent)

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> CallPostAsync (Uri baseURI, string requestURL, string accessToken, System.Net.Http.HttpContent content = default);
abstract member CallPostAsync : Uri * string * string * System.Net.Http.HttpContent -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function CallPostAsync (baseURI As Uri, requestURL As String, accessToken As String, Optional content As HttpContent = Nothing) As Task(Of HttpResponseMessage)

Parameters

baseURI
Uri
requestURL
String
accessToken
String
content
HttpContent

Returns

Applies to

CallPostAsync(Uri, String, String, Guid, HttpContent)

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> CallPostAsync (Uri baseURI, string requestURL, string accessToken, Guid correlationId, System.Net.Http.HttpContent content = default);
abstract member CallPostAsync : Uri * string * string * Guid * System.Net.Http.HttpContent -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function CallPostAsync (baseURI As Uri, requestURL As String, accessToken As String, correlationId As Guid, Optional content As HttpContent = Nothing) As Task(Of HttpResponseMessage)

Parameters

baseURI
Uri
requestURL
String
accessToken
String
correlationId
Guid
content
HttpContent

Returns

Applies to