vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Class ChunkedOutputStream

Outputs data to an output stream in HTTP chunked format.

class ChunkedOutputStream
  : OutputStream ;

Constructors

NameDescription
this (stream, alloc)

Properties

NameTypeDescription
chunkExtensionCallback[get, set] @safe string delegate(const(ubyte[]))A delegate used to specify the extensions for each chunk written to the underlying stream.
maxBufferSize[get, set] ulongMaximum buffer size used to buffer individual chunks.

Methods

NameDescription
finalize () Flushes and finalizes the stream.
flush () Flushes the stream and makes sure that all data is being written to the output device.
write (bytes_, mode) Writes an array of bytes to the stream.

Aliases

NameDescription
ChunkExtensionCallback
write
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.