add_accept_encoding

Function add_accept_encoding 

Source
pub fn add_accept_encoding(h: &mut HeaderMap)
Expand description

Insert an Accept-Encoding header (br, zstd, gzip) if not already present.

This hints to the server that the client supports compressed responses.