ChunkedOutputStream

Outputs data to an output stream in HTTP chunked format.

Constructors

this
deprecated this(OutputStream stream, IAllocator alloc)
Undocumented in source.
this
this(InterfaceProxy!OutputStream stream, IAllocator alloc, bool dummy)

private

Members

Aliases

ChunkExtensionCallback
alias ChunkExtensionCallback = string delegate(in ubyte[] data)
Undocumented in source.
write
alias write = OutputStream.write
Undocumented in source.

Functions

finalize
void finalize()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
write
size_t write(ubyte[] bytes_, IOMode mode)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

chunkExtensionCallback
ChunkExtensionCallback chunkExtensionCallback [@property getter]
ChunkExtensionCallback chunkExtensionCallback [@property setter]

A delegate used to specify the extensions for each chunk written to the underlying stream.

maxBufferSize
size_t maxBufferSize [@property getter]
size_t maxBufferSize [@property setter]

Maximum buffer size used to buffer individual chunks.

Inherited Members

From OutputStream

write
size_t write(ubyte[] bytes, IOMode mode)
void write(ubyte[] bytes)
void write(char[] bytes)

Writes an array of bytes to the stream.

flush
void flush()

Flushes the stream and makes sure that all data is being written to the output device.

finalize
void finalize()

Flushes and finalizes the stream.

write
deprecated void write(InputStream stream, ulong nbytes)

Pipes an InputStream directly into this OutputStream.

Meta