HttpResponse.writeBodyBytes

Writes the given byte content to the body of the response. If this response has not yet written its status line and headers, it will do that first.

struct HttpResponse
void
writeBodyBytes
(
ubyte[] data
,
string contentType = "application/octet-stream"
)

Parameters

data ubyte[]

The data to write.

contentType string

The content type of the data.