Output

Your reply.

Disabled Default Constructor

A disabled default is present on this object. To use it, use one of the other constructors or a factory function.

Members

Functions

addHeader
void addHeader(in string key, in string value)

You can add a http header. But you can't if body is already sent.

headersSent
bool headersSent()

Are headers already sent?

opOpAssign
void opOpAssign(T data)

Syntax sugar to write data

sendHeaders
void sendHeaders()

Force sending of headers.

setCookie
void setCookie(Cookie c)

You can set a cookie. But you can't if body is already sent.

write
void write(string data)
void write(in void[] data)

Write data

Properties

cookies
Cookie[] cookies [@property getter]

Retrieve all cookies

status
ulong status [@property getter]

Output status

status
ulong status [@property setter]

Set response status. Default is 200 (OK)

Meta