ChunkOutput

Prefix each block of data with its length (in hex digits) and add appropriate \r\n sequences. To commit the stream you'll need to use the terminate() function and optionally provide it with a callback for writing trailing headers

Constructors

this
this(OutputStream stream)

Use a buffer belonging to our sibling, if one is available

Members

Functions

terminate
void terminate(void delegate(OutputBuffer) headers)

Write a zero length chunk, trailing headers and a terminating blank line

write
size_t write(const(void)[] src)

Write a chunk to the output, prefixed and postfixed in a manner consistent with the HTTP chunked transfer coding

Inherited Members

From OutputFilter

sink
OutputStream sink;
Undocumented in source.
conduit
IConduit conduit [@property getter]

Return the hosting conduit.

write
size_t write(const(void)[] src)

Write to conduit from a source array. The provided src content will be written to the conduit.

copy
OutputStream copy(InputStream src, size_t max)

Transfer the content of another conduit to this one. Returns a reference to this class, or throws IOException on failure.

flush
IOStream flush()

Emit/purge buffered content.

seek
long seek(long offset, Anchor anchor)

Seek on this stream. Target conduits that don't support seeking will throw an IOException.

output
OutputStream output [@property getter]

Return the upstream host of this filter.

close
void close()

Close the output.

Meta