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 field
,
string value
)

Parameters

field
Type: string

Name of the field to set

value
Type: string

Value of the field

Meta