mirror of
https://github.com/actix/actix-web.git
synced 2025-01-04 14:28:50 +00:00
Expose ContentDisposition in actix-multipart to fix broken doc link
This commit is contained in:
parent
f81ae37677
commit
e90d71d16c
2 changed files with 6 additions and 1 deletions
|
@ -6,3 +6,7 @@ mod server;
|
||||||
|
|
||||||
pub use self::error::MultipartError;
|
pub use self::error::MultipartError;
|
||||||
pub use self::server::{Field, Multipart};
|
pub use self::server::{Field, Multipart};
|
||||||
|
|
||||||
|
pub mod headers {
|
||||||
|
pub use actix_web::http::header::{ContentDisposition, DispositionType, DispositionParam};
|
||||||
|
}
|
||||||
|
|
|
@ -12,11 +12,12 @@ use mime;
|
||||||
|
|
||||||
use actix_web::error::{ParseError, PayloadError};
|
use actix_web::error::{ParseError, PayloadError};
|
||||||
use actix_web::http::header::{
|
use actix_web::http::header::{
|
||||||
self, ContentDisposition, HeaderMap, HeaderName, HeaderValue,
|
self, HeaderMap, HeaderName, HeaderValue,
|
||||||
};
|
};
|
||||||
use actix_web::http::HttpTryFrom;
|
use actix_web::http::HttpTryFrom;
|
||||||
|
|
||||||
use crate::error::MultipartError;
|
use crate::error::MultipartError;
|
||||||
|
use crate::headers::ContentDisposition;
|
||||||
|
|
||||||
const MAX_HEADERS: usize = 32;
|
const MAX_HEADERS: usize = 32;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue