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=0.7.0

<package id="Cake.Http" version="0.7.0" />

dotnet add package Cake.Http --version 0.7.0

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

Aliases

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

Delete

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

Get

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

Patch

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

Post

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

Put

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

Send

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