1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

clarify docs for BodyEncoding::encoding() (#2258)

This commit is contained in:
Ali MJ Al-Nasrawy
2021-06-10 17:38:35 +03:00
committed by GitHub
parent e46cda5228
commit 812269d656
2 changed files with 4 additions and 0 deletions

View File

@ -235,6 +235,8 @@ impl NamedFile {
}
/// Set content encoding for serving this file
///
/// Must be used with [`actix_web::middleware::Compress`] to take effect.
#[inline]
pub fn set_content_encoding(mut self, enc: ContentEncoding) -> Self {
self.encoding = Some(enc);