ServerHttpResponse

The response that's sent by a server back to a client after processing the client's HTTP request.

Members

Functions

writeBodyBytes
void writeBodyBytes(ubyte[] bytes, string contentType)

Writes an array of bytes to the response's output stream.

writeBodyString
void writeBodyString(string content, string contentType)

Writes a string of content to the response's output stream.

Variables

headers
StringMultiValueMap headers;

A multi-valued map containing all headers.

outputStream
OutputStream!ubyte outputStream;

The stream to which the response body is written.

status
StatusInfo status;

The response status.