Request.setField

Set the value of a field.

The field is created if it doesn't exist. The name of the field is case insensitive. By default, a request doesn't contain any field (but the mandatory fields are added later by the HTTP client when sending the request).

class Request
void
setField
(
string feild
,
string value
)

Parameters

value string

Value of the field.

Meta