2018-10-23 03:18:05 +02:00
|
|
|
//! Http client api
|
2019-04-20 03:03:44 +02:00
|
|
|
use http::Uri;
|
|
|
|
|
2018-11-12 08:12:54 +01:00
|
|
|
mod connection;
|
|
|
|
mod connector;
|
|
|
|
mod error;
|
2019-01-29 05:41:09 +01:00
|
|
|
mod h1proto;
|
|
|
|
mod h2proto;
|
2018-11-12 08:12:54 +01:00
|
|
|
mod pool;
|
2018-10-23 03:18:05 +02:00
|
|
|
|
2019-01-29 19:34:27 +01:00
|
|
|
pub use self::connection::Connection;
|
2018-11-12 08:12:54 +01:00
|
|
|
pub use self::connector::Connector;
|
2019-09-10 06:29:32 +02:00
|
|
|
pub use self::error::{ConnectError, InvalidUrl, SendRequestError, FreezeRequestError};
|
2019-04-08 20:09:57 +02:00
|
|
|
pub use self::pool::Protocol;
|
2019-04-20 03:03:44 +02:00
|
|
|
|
|
|
|
#[derive(Clone)]
|
|
|
|
pub struct Connect {
|
|
|
|
pub uri: Uri,
|
|
|
|
pub addr: Option<std::net::SocketAddr>,
|
|
|
|
}
|