HttpClientAsyncAliases.

HttpSendAsync(ICakeContext, HttpRequestMessage) Method

Summary

Sends the HTTP Request using the generic HttpClient Send Method using the HttpRequestMessage Object
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpClientAsyncAliases

Syntax

public static Task<HttpResponseMessage> HttpSendAsync(this ICakeContext context, HttpRequestMessage request)

Attributes

Type Description
AsyncStateMachineAttribute
CakeAliasCategoryAttribute
CakeMethodAliasAttribute

Parameters

Name Type Description
context ICakeContext The context.
request HttpRequestMessage Raw HttpRequest Message with full access to underlying request object.

Return Value

Type Description
Task<HttpResponseMessage> HttpResponseMessage