(&self)
| 27 | |
| 28 | impl ContentEncoding { |
| 29 | pub const fn as_header_value(&self) -> HeaderValue { |
| 30 | match self { |
| 31 | Self::Br => HeaderValue::from_static("br"), |
| 32 | Self::Deflate => HeaderValue::from_static("deflate"), |
| 33 | Self::Gzip => HeaderValue::from_static("gzip"), |
| 34 | Self::Zstd => HeaderValue::from_static("zstd"), |
| 35 | Self::Identity => HeaderValue::from_static("identity"), |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// Negotiate content encoding from the `accept-encoding` header. |
| 40 | /// |
no outgoing calls
no test coverage detected