HttpSettingsExtensions.

SetFormUrlEncodedRequestBody(HttpSettings, IDictionary<string, string>) Method

Summary

Sets the request body as form url encoded. Only valid for Http Methods that allow a request body. Any existing content in the RequestBody is overridden.
Assembly
Cake.Http.dll
Namespace
Cake.Http
Containing Type
HttpSettingsExtensions

Syntax

public static HttpSettings SetFormUrlEncodedRequestBody(this HttpSettings settings, IDictionary<string, string> data)

Parameters

Name Type Description
settings HttpSettings The settings.
data IDictionary<string, string> Dictionary of data to url encode and set to the body.

Return Value

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