HttpResponse.addHeader

Adds a header to the response. This can only be done before headers are flushed.

struct HttpResponse
addHeader
(
string name
,
string value
)

Parameters

name string

The name of the header.

value string

The value to set for the header.

Return Value

The response object, for method chaining.