HttpResponseOutputStream.writeToStream

Writes the given data to the stream. If the referenced HTTP response's status and headers haven't yet been written, they will be written first.

struct HttpResponseOutputStream(S)
StreamResult
writeToStream
(
ubyte[] buffer
)
if (
isByteOutputStream!S
)

Parameters

buffer ubyte[]

The buffer containing data to write.

Return Value

Type: StreamResult

The result of writing. If status and headers are written, the number of bytes written will include that in addition to the buffer size.