HTTPServerResponse.writeBody

Writes the entire response body at once.

Parameters

data ubyte[]

The data to write as the body contents

status int

Optional response status code to set

content_type string

Optional content type to apply to the response. If no content type is given and no "Content-Type" header is set in the response, this will default to "application/octet-stream".

See Also

HTTPStatusCode

Meta