1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-30 20:04:26 +02:00

replace reqwest with actix::client

This commit is contained in:
Nikolay Kim
2018-02-19 13:18:18 -08:00
parent cb70d5ec3d
commit 548f4e4d62
12 changed files with 430 additions and 151 deletions

View File

@ -33,7 +33,8 @@ impl ContentEncoding {
}
}
fn as_str(&self) -> &'static str {
#[inline]
pub fn as_str(&self) -> &'static str {
match *self {
ContentEncoding::Br => "br",
ContentEncoding::Gzip => "gzip",