mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-31 17:07:01 +02:00
remove actix_http::http
module (#2488)
This commit is contained in:
@@ -8,18 +8,16 @@ use std::{
|
||||
|
||||
use actix_http::{
|
||||
body::{BodyStream, BoxBody, MessageBody},
|
||||
http::{
|
||||
header::{self, HeaderName, IntoHeaderPair, IntoHeaderValue},
|
||||
ConnectionType, Error as HttpError, StatusCode,
|
||||
},
|
||||
Extensions, Response, ResponseHead,
|
||||
error::HttpError,
|
||||
header::{self, HeaderName, IntoHeaderPair, IntoHeaderValue},
|
||||
ConnectionType, Extensions, Response, ResponseHead, StatusCode,
|
||||
};
|
||||
use bytes::Bytes;
|
||||
use futures_core::Stream;
|
||||
use serde::Serialize;
|
||||
|
||||
#[cfg(feature = "cookies")]
|
||||
use actix_http::http::header::HeaderValue;
|
||||
use actix_http::header::HeaderValue;
|
||||
#[cfg(feature = "cookies")]
|
||||
use cookie::{Cookie, CookieJar};
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
//! Status code based HTTP response builders.
|
||||
|
||||
use actix_http::http::StatusCode;
|
||||
use actix_http::StatusCode;
|
||||
|
||||
use crate::{HttpResponse, HttpResponseBuilder};
|
||||
|
||||
|
@@ -9,15 +9,15 @@ use std::{
|
||||
|
||||
use actix_http::{
|
||||
body::{BoxBody, EitherBody, MessageBody},
|
||||
http::{header::HeaderMap, StatusCode},
|
||||
Extensions, Response, ResponseHead,
|
||||
header::HeaderMap,
|
||||
Extensions, Response, ResponseHead, StatusCode,
|
||||
};
|
||||
|
||||
#[cfg(feature = "cookies")]
|
||||
use {
|
||||
actix_http::http::{
|
||||
actix_http::{
|
||||
error::HttpError,
|
||||
header::{self, HeaderValue},
|
||||
Error as HttpError,
|
||||
},
|
||||
cookie::Cookie,
|
||||
};
|
||||
|
Reference in New Issue
Block a user