HttpClientAliases Class

Summary

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

Assembly
Cake.Http.dll
Namespace
Cake.Http
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["HttpClientAliases"] class Type type-node

Syntax

public static class HttpClientAliases

Attributes

Type Description
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Methods

Name Value Summary
HttpDelete(ICakeContext, string, Action<HttpSettings>) void
DELETE the specified resource over HTTP/HTTPS.
static
HttpDelete(ICakeContext, string, HttpSettings) void
DELETE the specified resource over over HTTP/HTTPS.
static
HttpDelete(ICakeContext, string) void
DELETE the specified resource over HTTP/HTTPS.
static
HttpGet(ICakeContext, string, Action<HttpSettings>) string
GETS the specified resource over over HTTP/HTTPS.
static
HttpGet(ICakeContext, string, HttpSettings) string
GETS the specified resource over HTTP/HTTPS.
static
HttpGet(ICakeContext, string) string
GETS the specified resource over over HTTP/HTTPS.
static
HttpGetAsByteArray(ICakeContext, string, HttpSettings) byte[]
GETS the specified resource over HTTP/HTTPS.
static
HttpPatch(ICakeContext, string, Action<HttpSettings>) string
PATCH the specified resource over HTTP/HTTPS.
static
HttpPatch(ICakeContext, string, HttpSettings) string
PATCH the specified resource over over HTTP/HTTPS.
static
HttpPatch(ICakeContext, string) string
PATCH the specified resource over HTTP/HTTPS.
static
HttpPatchAsByteArray(ICakeContext, string, HttpSettings) byte[]
PATCH the specified resource over over HTTP/HTTPS.
static
HttpPost(ICakeContext, string, Action<HttpSettings>) string
POST the specified resource over HTTP/HTTPS.
static
HttpPost(ICakeContext, string, HttpSettings) string
POST the specified resource over over HTTP/HTTPS.
static
HttpPost(ICakeContext, string) string
POST the specified resource over HTTP.
static
HttpPostAsByteArray(ICakeContext, string, HttpSettings) byte[]
POST the specified resource over over HTTP/HTTPS.
static
HttpPut(ICakeContext, string, Action<HttpSettings>) string
PUT the specified resource over HTTP/HTTPS.
static
HttpPut(ICakeContext, string, HttpSettings) string
PUT the specified resource over over HTTP/HTTPS.
static
HttpPut(ICakeContext, string) string
PUT the specified resource over HTTP/HTTPS.
static
HttpPutAsByteArray(ICakeContext, string, HttpSettings) byte[]
PUT the specified resource over over HTTP/HTTPS.
static
HttpSend(ICakeContext, HttpRequestMessage) HttpResponseMessage
Sends the HTTP Request using the generic HttpClient Send Method using the HttpRequestMessage Object
static
HttpSend(ICakeContext, string, string, Action<HttpSettings>) string
Sends the HTTP Request using the generic HttpClient Send Method.
static
HttpSend(ICakeContext, string, string, HttpSettings) string
Sends the HTTP Request using the generic HttpClient Send Method.
static
HttpSend(ICakeContext, string, string) string
Sends the HTTP Request using the generic HttpClient Send Method.
static
HttpSendAsByteArray(ICakeContext, string, string, HttpSettings) byte[]
Sends the HTTP Request using the generic HttpClient Send Method.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin