pub struct Deflate { /* private fields */ }
Expand description
The deflate extension type.
The extension does currently not support max. window bits other than the default, which is 15 and will ask for no context takeover during handshake.
Implementations§
source§impl Deflate
impl Deflate
sourcepub fn set_max_server_window_bits(&mut self, max: u8)
pub fn set_max_server_window_bits(&mut self, max: u8)
Set the server’s max. window bits.
The value must be within 9 ..= 15. The extension must be in client mode.
By including this parameter, a client limits the LZ77 sliding window size that the server will use to compress messages. A server accepts by including the “server_max_window_bits” extension parameter in the response with the same or smaller value as the offer.
sourcepub fn set_max_client_window_bits(&mut self, max: u8)
pub fn set_max_client_window_bits(&mut self, max: u8)
Set the client’s max. window bits.
The value must be within 9 ..= 15. The extension must be in client mode.
The parameter informs the server that even if it doesn’t include the “client_max_window_bits” extension parameter in the response with a value greater than the one in the negotiation offer or if it doesn’t include the extension parameter at all, the client is not going to use an LZ77 sliding window size greater than one given here. The server may also respond with a smaller value which allows the client to reduce its sliding window even more.