ServerHttpResponse.writeBodyBytes

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

struct ServerHttpResponse
void
writeBodyBytes

Parameters

bytes ubyte[]

The bytes to write.

contentType string

The declared content type of the data, which is written as the "Content-Type" header.