1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-02 01:05:08 +02:00

make some http re-exports more accessible (#2171)

This commit is contained in:
Rob Ede
2021-04-19 03:29:38 +01:00
committed by GitHub
parent b9dbc58e20
commit db97974dc1
9 changed files with 66 additions and 20 deletions

View File

@ -553,7 +553,7 @@ impl fmt::Display for ContentDisposition {
mod tests {
use super::{ContentDisposition, DispositionParam, DispositionType};
use crate::http::header::{Charset, ExtendedValue, HeaderValue};
#[test]
fn test_from_raw_basic() {
assert!(ContentDisposition::from_raw(&HeaderValue::from_static("")).is_err());

View File

@ -9,6 +9,7 @@ use actix_http::{
};
use actix_router::{IntoPattern, Path, Resource, ResourceDef, Url};
use actix_service::{IntoServiceFactory, ServiceFactory};
#[cfg(feature = "cookies")]
use cookie::{Cookie, ParseError as CookieParseError};
use crate::dev::insert_slash;