HttpSettingsExtensions.

SetAcceptLanguage(HttpSettings, string) Method

Summary

Sets the "Accept-Language" header of the request.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetAcceptLanguage(this HttpSettings settings, string acceptLanguage)

Parameters

Name Type Description
settings HttpSettings The settings.
acceptLanguage string List of acceptable human languages for response.

Return Value

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