CakeHttpClientHandler Class

Summary

Custom HTTP Handler to delegate the processing of HTTP requests and extending it.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Base Types
  • HttpClientHandler
graph BT Type-->Base0["HttpClientHandler"] Type["CakeHttpClientHandler"] class Type type-node

Syntax

public class CakeHttpClientHandler : HttpClientHandler

Constructors

Name Summary
CakeHttpClientHandler(ICakeContext, HttpSettings) Custom HTTP Handler to delegate the processing of HTTP requests and extending it.

Methods

Name Value Summary
SendAsync(HttpRequestMessage, CancellationToken) Task<HttpResponseMessage>
Sends an HTTP request to the inner handler to send to the server as an asynchronous operation.

Extension Methods

Name Value Summary
Dump<CakeHttpClientHandler>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CakeHttpClientHandler>(CakeHttpClientHandler[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CakeHttpClientHandler>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<CakeHttpClientHandler>(string) void
Requires the Cake.Issues addin
ThrowIfNull<CakeHttpClientHandler>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<CakeHttpClientHandler>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin