1
0
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:
Rob Ede
2021-12-05 14:37:20 +00:00
committed by GitHub
parent 59be0c65c6
commit 2d053b7036
57 changed files with 209 additions and 234 deletions

View File

@@ -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};

View File

@@ -1,6 +1,6 @@
//! Status code based HTTP response builders.
use actix_http::http::StatusCode;
use actix_http::StatusCode;
use crate::{HttpResponse, HttpResponseBuilder};

View File

@@ -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,
};