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:
committed by
GitHub
parent
e46cda5228
commit
812269d656
@ -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);
|
||||
|
Reference in New Issue
Block a user