2018-10-23 03:18:05 +02:00
|
|
|
//! Http client api
|
2019-04-20 03:03:44 +02:00
|
|
|
use http::Uri;
|
|
|
|
|
2020-03-07 03:09:31 +01:00
|
|
|
mod config;
|
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-12 17:52:46 +02:00
|
|
|
pub use self::error::{ConnectError, FreezeRequestError, InvalidUrl, SendRequestError};
|
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>,
|
|
|
|
}
|