1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +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

@ -169,6 +169,8 @@ pub mod dev {
fn get_encoding(&self) -> Option<ContentEncoding>;
/// Set content encoding
///
/// Must be used with [`crate::middleware::Compress`] to take effect.
fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self;
}