HttpSettingsExtensions.

SetAuthorization(HttpSettings, string, string) Method

Summary

Adds a Authorization Header to the request.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetAuthorization(this HttpSettings settings, string schema, string parameter)

Parameters

Name Type Description
settings HttpSettings The settings.
schema string The scheme to use for authorization.
parameter string The credentials containing the authentication information of the user agent for

Return Value

Type Description
HttpSettings The same HttpSettings instance so that multiple calls can be chained.