Cake.Http

Cake.Http is set of aliases that help simplify HTTP calls for GET, POST, PUT, DELETE, PATCH, etc.

#addin nuget:?package=Cake.Http&version=4.0.0

dotnet add package Cake.Http --version 4.0.0

<PackageReference Include="Cake.Http" Version="4.0.0" />

Aliases

Contains functionality for working with HTTP operations such as GET, PUT, POST, DELETE, PATCH, etc.

Delete

HttpDelete(string, Action<HttpSettings>) DELETE the specified resource over HTTP/HTTPS.
HttpDelete(string, HttpSettings) DELETE the specified resource over over HTTP/HTTPS.
HttpDelete(string) DELETE the specified resource over HTTP/HTTPS.
HttpDeleteAsync(string, Action<HttpSettings>) DELETE the specified resource over HTTP/HTTPS.
HttpDeleteAsync(string, HttpSettings) DELETE the specified resource over over HTTP/HTTPS.
HttpDeleteAsync(string) DELETE the specified resource over HTTP/HTTPS.

Get

HttpGet(string, Action<HttpSettings>) GETS the specified resource over over HTTP/HTTPS.
HttpGet(string, HttpSettings) GETS the specified resource over HTTP/HTTPS.
HttpGet(string) GETS the specified resource over over HTTP/HTTPS.
HttpGetAsByteArray(string, HttpSettings) GETS the specified resource over HTTP/HTTPS.
HttpGetAsByteArrayAsync(string, HttpSettings) GETS the specified resource over HTTP/HTTPS.
HttpGetAsync(string, Action<HttpSettings>) GETS the specified resource over over HTTP/HTTPS.
HttpGetAsync(string, HttpSettings) GETS the specified resource over HTTP/HTTPS.
HttpGetAsync(string) GETS the specified resource over over HTTP/HTTPS.

Patch

HttpPatch(string, Action<HttpSettings>) PATCH the specified resource over HTTP/HTTPS.
HttpPatch(string, HttpSettings) PATCH the specified resource over over HTTP/HTTPS.
HttpPatch(string) PATCH the specified resource over HTTP/HTTPS.
HttpPatchAsByteArray(string, HttpSettings) PATCH the specified resource over over HTTP/HTTPS.
HttpPatchAsByteArrayAsync(string, HttpSettings) PATCH the specified resource over over HTTP/HTTPS.
HttpPatchAsync(string, Action<HttpSettings>) PATCH the specified resource over HTTP/HTTPS.
HttpPatchAsync(string, HttpSettings) PATCH the specified resource over over HTTP/HTTPS.
HttpPatchAsync(string) PATCH the specified resource over HTTP/HTTPS.

Post

HttpPost(string, Action<HttpSettings>) POST the specified resource over HTTP/HTTPS.
HttpPost(string, HttpSettings) POST the specified resource over over HTTP/HTTPS.
HttpPost(string) POST the specified resource over HTTP.
HttpPostAsByteArray(string, HttpSettings) POST the specified resource over over HTTP/HTTPS.
HttpPostAsByteArrayAsync(string, HttpSettings) POST the specified resource over over HTTP/HTTPS.
HttpPostAsync(string, Action<HttpSettings>) POST the specified resource over HTTP/HTTPS.
HttpPostAsync(string, HttpSettings) POST the specified resource over over HTTP/HTTPS.
HttpPostAsync(string) POST the specified resource over HTTP.

Put

HttpPut(string, Action<HttpSettings>) PUT the specified resource over HTTP/HTTPS.
HttpPut(string, HttpSettings) PUT the specified resource over over HTTP/HTTPS.
HttpPut(string) PUT the specified resource over HTTP/HTTPS.
HttpPutAsByteArray(string, HttpSettings) PUT the specified resource over over HTTP/HTTPS.
HttpPutAsByteArrayAsync(string, HttpSettings) PUT the specified resource over over HTTP/HTTPS.
HttpPutAsync(string, Action<HttpSettings>) PUT the specified resource over HTTP/HTTPS.
HttpPutAsync(string, HttpSettings) PUT the specified resource over over HTTP/HTTPS.
HttpPutAsync(string) PUT the specified resource over HTTP/HTTPS.

Send

HttpSend(HttpRequestMessage) Sends the HTTP Request using the generic HttpClient Send Method using the HttpRequestMessage Object
HttpSend(string, string, Action<HttpSettings>) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSend(string, string, HttpSettings) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSend(string, string) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSendAsByteArray(string, string, HttpSettings) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSendAsByteArrayAsync(string, string, HttpSettings) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSendAsync(HttpRequestMessage) Sends the HTTP Request using the generic HttpClient Send Method using the HttpRequestMessage Object
HttpSendAsync(string, string, Action<HttpSettings>) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSendAsync(string, string, HttpSettings) Sends the HTTP Request using the generic HttpClient Send Method.
HttpSendAsync(string, string) Sends the HTTP Request using the generic HttpClient Send Method.