Skip to content

Commit 606dfd6

Browse files
seanmonstarkxt
authored andcommitted
feat(client): add 1.0 compatible client conn API (#3155)
This patch backports client/conn/http1 and http2 modules from 1.0 to ease transition. It allows code still using 0.14.x to switch to the per-version Connection types available in 1.0. Closes #3053 Co-authored-by: KOVACS Tamas <[email protected]>
1 parent c7af00b commit 606dfd6

File tree

5 files changed

+1104
-0
lines changed

5 files changed

+1104
-0
lines changed

src/client/conn.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
//! # }
5555
//! ```
5656
57+
#[cfg(all(feature = "backports", feature = "http1"))]
58+
pub mod http1;
59+
#[cfg(all(feature = "backports", feature = "http2"))]
60+
pub mod http2;
61+
5762
use std::error::Error as StdError;
5863
use std::fmt;
5964
#[cfg(not(all(feature = "http1", feature = "http2")))]

0 commit comments

Comments
 (0)