Output

Your reply.

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.

cookies
Cookie[] cookies()

Retrieve all cookies

headersSent
bool headersSent()

Are headers already sent?

opCall
void opCall(T params)

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.

status
ulong status()

Output status

status
void status(ulong status)

Set response status. Default is 200 (OK)

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

Write data

Meta