HttpSettingsExtensions.

SetContentType(HttpSettings, string) Method

Summary

Sets the content-type of the request
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetContentType(this HttpSettings settings, string contentType)

Parameters

Name Type Description
settings HttpSettings The settings.
contentType string The MIME type of the body of the request (used with POST and PUT requests).

Return Value

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