mirror of https://github.com/fafhrd91/actix-web
27 lines
537 B
Rust
27 lines
537 B
Rust
//! HTTP client.
|
|
|
|
use http::Uri;
|
|
|
|
mod config;
|
|
mod connection;
|
|
mod connector;
|
|
mod error;
|
|
mod h1proto;
|
|
mod h2proto;
|
|
mod pool;
|
|
|
|
pub use actix_tls::connect::{
|
|
Connect as TcpConnect, ConnectError as TcpConnectError, Connection as TcpConnection,
|
|
};
|
|
|
|
pub use self::connection::Connection;
|
|
pub use self::connector::Connector;
|
|
pub use self::error::{ConnectError, FreezeRequestError, InvalidUrl, SendRequestError};
|
|
pub use crate::Protocol;
|
|
|
|
#[derive(Clone)]
|
|
pub struct Connect {
|
|
pub uri: Uri,
|
|
pub addr: Option<std::net::SocketAddr>,
|
|
}
|