1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-30 16:40:21 +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

@@ -1,7 +1,7 @@
use std::convert::Infallible;
use actix_http::{
body::BoxBody, http, http::StatusCode, HttpMessage, HttpService, Request, Response,
body::BoxBody, HttpMessage, HttpService, Request, Response, StatusCode,
};
use actix_http_test::test_server;
use actix_service::ServiceFactoryExt;

View File

@@ -7,11 +7,8 @@ use std::{convert::Infallible, io};
use actix_http::{
body::{BodyStream, BoxBody, SizedStream},
error::PayloadError,
http::{
header::{self, HeaderValue},
Method, StatusCode, Version,
},
Error, HttpMessage, HttpService, Request, Response,
header::{self, HeaderValue},
Error, HttpMessage, HttpService, Method, Request, Response, StatusCode, Version,
};
use actix_http_test::test_server;
use actix_service::{fn_service, ServiceFactoryExt};

View File

@@ -12,11 +12,8 @@ use std::{
use actix_http::{
body::{BodyStream, BoxBody, SizedStream},
error::PayloadError,
http::{
header::{self, HeaderName, HeaderValue},
Method, StatusCode, Version,
},
Error, HttpService, Request, Response,
header::{self, HeaderName, HeaderValue},
Error, HttpService, Method, Request, Response, StatusCode, Version,
};
use actix_http_test::test_server;
use actix_service::{fn_factory_with_config, fn_service};

View File

@@ -7,8 +7,7 @@ use std::{
use actix_http::{
body::{self, BodyStream, BoxBody, SizedStream},
header, http, Error, HttpMessage, HttpService, KeepAlive, Request, Response,
StatusCode,
header, Error, HttpMessage, HttpService, KeepAlive, Request, Response, StatusCode,
};
use actix_http_test::test_server;
use actix_rt::time::sleep;
@@ -383,7 +382,7 @@ async fn test_http1_keepalive_disabled() {
#[actix_rt::test]
async fn test_content_length() {
use actix_http::http::{
use actix_http::{
header::{HeaderName, HeaderValue},
StatusCode,
};