Deflater

Undocumented in source.

Constructors

this
this(size_t _deflate_hd_table_bufsize_max)
Undocumented in source.

Members

Functions

changeTableSize
void changeTableSize(size_t settings_hd_table_bufsize_max)

Changes header table size of the |Deflater| to |settings_hd_table_bufsize_max| bytes. This may trigger eviction in the dynamic table.

deflate
ErrorCode deflate(Buffers bufs, HeaderField[] hfa)
Undocumented in source. Be warned that the author may not have intended to support it.
deflate
ErrorCode deflate(Buffers bufs, HeaderField hf)
Undocumented in source. Be warned that the author may not have intended to support it.
deflate
int deflate(ubyte[] buf, HeaderField[] hfa)

Deflates the |hfa|, which has |hfa.length| header fields, into the |buf| of length |buf.length|.

free
void free()
Undocumented in source. Be warned that the author may not have intended to support it.
shouldIndex
bool shouldIndex(HeaderField hf)
Undocumented in source. Be warned that the author may not have intended to support it.
upperBound
size_t upperBound(HeaderField[] hfa)

Returns an upper bound on the compressed size after deflation of |hfa|

Variables

ctx
HDTable ctx;
Undocumented in source.
deflate_hd_table_bufsize_max
size_t deflate_hd_table_bufsize_max;

The upper limit of the header table size the deflater accepts.

min_hd_table_bufsize_max
size_t min_hd_table_bufsize_max;

Minimum header table size notified in the next context update

notify_table_size_change
bool notify_table_size_change;

If nonzero, send header table size using encoding context update in the next deflate process

Meta