Output

Your reply.

Constructors

this
this()
Undocumented in source.

Members

Functions

addHeader
void addHeader(string key, string value)

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

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.

write
void write(string data)
void write(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