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