Skip to content

Commit 82660d9

Browse files
authored
feat(pool): import client::pool from hyper (#3)
cc hyperium/hyper#2860
1 parent 36082c9 commit 82660d9

File tree

8 files changed

+1145
-0
lines changed

8 files changed

+1145
-0
lines changed

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ edition = "2018"
1515
publish = false # no accidents while in dev
1616

1717
[dependencies]
18+
hyper = "0.14.19"
19+
futures-channel = "0.3"
1820
futures-util = { version = "0.3", default-features = false }
1921
http = "0.2"
2022
pin-project-lite = "0.2.4"

src/client/client.rs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/// A marker to identify what version a pooled connection is.
2+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
3+
#[allow(dead_code)]
4+
pub(super) enum Ver {
5+
Auto,
6+
Http2,
7+
}

src/client/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
//! HTTP client utilities
2+
#![allow(missing_docs)]
23

4+
pub mod client;
35
pub mod connect;
6+
pub mod pool;

0 commit comments

Comments
 (0)