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
(
const(char)[] field
,
const(char)[] value
)

Parameters

field const(char)[]

Name of the field to set

value const(char)[]

Value of the field

Meta