Skip to main content

wreq_proto/
lib.rs

1#![deny(unused)]
2#![deny(unsafe_code)]
3#![deny(missing_docs)]
4#![allow(unexpected_cfgs)]
5#![cfg_attr(test, deny(rust_2018_idioms))]
6#![cfg_attr(test, deny(warnings))]
7#![cfg_attr(not(test), warn(unused_crate_dependencies))]
8#![cfg_attr(all(test, feature = "nightly"), feature(test))]
9
10//! # wreq-proto
11//!
12//! [wreq](https://github.com/0x676e67/wreq) HTTP client protocol and utilities.
13//!
14//! Much of this codebase is adapted and refined from [hyper](https://github.com/hyperium/hyper),
15//! aiming to match its performance and reliability for asynchronous HTTP/1 and HTTP/2.
16
17#[macro_use]
18mod trace;
19mod dispatch;
20mod error;
21mod proto;
22
23pub mod body;
24pub mod conn;
25pub mod ext;
26pub mod rt;
27pub mod upgrade;
28
29pub use self::{
30    error::{Error, Result},
31    proto::{http1, http2},
32};