HttpSettingsExtensions.

SetAccept(HttpSettings, string) Method

Summary

Sets the accept header of the request.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetAccept(this HttpSettings settings, string accept)

Parameters

Name Type Description
settings HttpSettings The settings.
accept string Content-Types that are acceptable for the response. See Content negotiation.

Return Value

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