This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Http.
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.
Accepts multiple parameters with the same key.
- Assembly
- Cake
.Http .dll - Namespace
- Cake
.Http - Containing Type
- Http
Settings Extensions
Syntax
public static HttpSettings SetFormUrlEncodedRequestBody(this HttpSettings settings, IEnumerable<KeyValuePair<string, string>> data)
Parameters
Name | Type | Description |
---|---|---|
settings | HttpSettings | The settings. |
data | IEnumerable |
Enumerable of KeyValuePair<TKey, TValue> 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. |