mirror of https://github.com/fafhrd91/actix-web
remove extra export of HeaderMap
This commit is contained in:
parent
2cb2a30949
commit
9768ea4dd1
|
@ -56,7 +56,7 @@ derive_more = "0.99.5"
|
||||||
either = "1.5.3"
|
either = "1.5.3"
|
||||||
encoding_rs = "0.8"
|
encoding_rs = "0.8"
|
||||||
futures-channel = { version = "0.3.7", default-features = false, features = ["alloc"] }
|
futures-channel = { version = "0.3.7", default-features = false, features = ["alloc"] }
|
||||||
futures-core = { version = "0.3.7", default-features = false }
|
futures-core = { version = "0.3.7", default-features = false, features = ["alloc"] }
|
||||||
futures-util = { version = "0.3.7", default-features = false, features = ["alloc", "sink"] }
|
futures-util = { version = "0.3.7", default-features = false, features = ["alloc", "sink"] }
|
||||||
ahash = "0.6"
|
ahash = "0.6"
|
||||||
h2 = "0.3.0"
|
h2 = "0.3.0"
|
||||||
|
|
|
@ -44,7 +44,6 @@ pub use self::builder::HttpServiceBuilder;
|
||||||
pub use self::config::{KeepAlive, ServiceConfig};
|
pub use self::config::{KeepAlive, ServiceConfig};
|
||||||
pub use self::error::{Error, ResponseError, Result};
|
pub use self::error::{Error, ResponseError, Result};
|
||||||
pub use self::extensions::Extensions;
|
pub use self::extensions::Extensions;
|
||||||
pub use self::header::HeaderMap;
|
|
||||||
pub use self::httpmessage::HttpMessage;
|
pub use self::httpmessage::HttpMessage;
|
||||||
pub use self::message::{Message, RequestHead, RequestHeadType, ResponseHead};
|
pub use self::message::{Message, RequestHead, RequestHeadType, ResponseHead};
|
||||||
pub use self::payload::{Payload, PayloadStream};
|
pub use self::payload::{Payload, PayloadStream};
|
||||||
|
|
|
@ -13,8 +13,7 @@ use futures_util::{pin_mut, SinkExt, StreamExt};
|
||||||
use actix_http::body::{BodySize, MessageBody};
|
use actix_http::body::{BodySize, MessageBody};
|
||||||
use actix_http::error::PayloadError;
|
use actix_http::error::PayloadError;
|
||||||
use actix_http::h1;
|
use actix_http::h1;
|
||||||
use actix_http::http::header::{IntoHeaderValue, HOST};
|
use actix_http::http::header::{HeaderMap, IntoHeaderValue, HOST};
|
||||||
use actix_http::HeaderMap;
|
|
||||||
use actix_http::{Payload, PayloadStream};
|
use actix_http::{Payload, PayloadStream};
|
||||||
use actix_http::{RequestHeadType, ResponseHead};
|
use actix_http::{RequestHeadType, ResponseHead};
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,12 @@ use h2::{
|
||||||
client::{Builder, Connection, SendRequest},
|
client::{Builder, Connection, SendRequest},
|
||||||
SendStream,
|
SendStream,
|
||||||
};
|
};
|
||||||
use http::header::{HeaderValue, CONNECTION, CONTENT_LENGTH, TRANSFER_ENCODING};
|
|
||||||
use http::{request::Request, Method, Version};
|
use http::{request::Request, Method, Version};
|
||||||
|
|
||||||
use actix_http::body::{BodySize, MessageBody};
|
use actix_http::body::{BodySize, MessageBody};
|
||||||
use actix_http::HeaderMap;
|
use actix_http::http::header::{
|
||||||
|
HeaderMap, HeaderValue, CONNECTION, CONTENT_LENGTH, TRANSFER_ENCODING,
|
||||||
|
};
|
||||||
use actix_http::Payload;
|
use actix_http::Payload;
|
||||||
use actix_http::{RequestHeadType, ResponseHead};
|
use actix_http::{RequestHeadType, ResponseHead};
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,8 @@ use actix_service::Service;
|
||||||
use actix_utils::task::LocalWaker;
|
use actix_utils::task::LocalWaker;
|
||||||
use ahash::AHashMap;
|
use ahash::AHashMap;
|
||||||
use bytes::Bytes;
|
use bytes::Bytes;
|
||||||
use futures_util::future::{poll_fn, FutureExt, LocalBoxFuture};
|
use futures_core::future::LocalBoxFuture;
|
||||||
|
use futures_util::future::{poll_fn, FutureExt};
|
||||||
use h2::client::{Connection, SendRequest};
|
use h2::client::{Connection, SendRequest};
|
||||||
use http::uri::Authority;
|
use http::uri::Authority;
|
||||||
use indexmap::IndexSet;
|
use indexmap::IndexSet;
|
||||||
|
|
|
@ -718,10 +718,9 @@ async fn test_client_cookie_handling() {
|
||||||
#[actix_rt::test]
|
#[actix_rt::test]
|
||||||
async fn client_unread_response() {
|
async fn client_unread_response() {
|
||||||
let addr = test::unused_addr();
|
let addr = test::unused_addr();
|
||||||
|
let lst = std::net::TcpListener::bind(addr).unwrap();
|
||||||
|
|
||||||
std::thread::spawn(move || {
|
std::thread::spawn(move || {
|
||||||
let lst = std::net::TcpListener::bind(addr).unwrap();
|
|
||||||
|
|
||||||
for stream in lst.incoming() {
|
for stream in lst.incoming() {
|
||||||
let mut stream = stream.unwrap();
|
let mut stream = stream.unwrap();
|
||||||
let mut b = [0; 1000];
|
let mut b = [0; 1000];
|
||||||
|
|
Loading…
Reference in New Issue