warp
warp copied to clipboard
Compression extracted from Accept-Encoding header
As far as I know there is no way to do this right now. However I think it is a necessity for a server to have. I tried to implement it myself but failed because the compression methods only get a HeaderMap where they can add headers to the response and not one where they can get the request's headers. I think it would be great if you could do something like
compression::from_header()
Did I miss something and you can already do it? Resources: Accept-Encoding