Response.getField

Get the value of a field.

If the field field is not found in the response header, the empty string is returned. This function uses case-insensitive comparisons.

class Response
string
getField
(
const(char)[] field
)

Parameters

field
Type: const(char)[]

Name of the field to get

Return Value

Type: string

Value of the field, or empty string if not found.

Meta