Struct httpbis::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Methods
impl Client
[src]
impl Client
pub fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<Client>
[src]
pub fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<Client>
pub fn new_tls<C: TlsConnector>(
host: &str,
port: u16,
conf: ClientConf
) -> Result<Client>
[src]
pub fn new_tls<C: TlsConnector>(
host: &str,
port: u16,
conf: ClientConf
) -> Result<Client>
pub fn new_plain_unix(addr: &str, conf: ClientConf) -> Result<Client>
[src]
pub fn new_plain_unix(addr: &str, conf: ClientConf) -> Result<Client>
pub fn new_tls_unix<C: TlsConnector>(
addr: &str,
conf: ClientConf
) -> Result<Client>
[src]
pub fn new_tls_unix<C: TlsConnector>(
addr: &str,
conf: ClientConf
) -> Result<Client>
pub fn new_expl<C: TlsConnector>(
addr: &SocketAddr,
tls: ClientTlsOption<C>,
conf: ClientConf
) -> Result<Client>
[src]
pub fn new_expl<C: TlsConnector>(
addr: &SocketAddr,
tls: ClientTlsOption<C>,
conf: ClientConf
) -> Result<Client>
pub fn start_request_simple(&self, headers: Headers, body: Bytes) -> Response
[src]
pub fn start_request_simple(&self, headers: Headers, body: Bytes) -> Response
pub fn start_get(&self, path: &str, authority: &str) -> Response
[src]
pub fn start_get(&self, path: &str, authority: &str) -> Response
pub fn start_post(&self, path: &str, authority: &str, body: Bytes) -> Response
[src]
pub fn start_post(&self, path: &str, authority: &str, body: Bytes) -> Response
pub fn dump_state(&self) -> HttpFutureSend<ConnectionStateSnapshot>
[src]
pub fn dump_state(&self) -> HttpFutureSend<ConnectionStateSnapshot>
pub fn wait_for_connect(&self) -> HttpFutureSend<()>
[src]
pub fn wait_for_connect(&self) -> HttpFutureSend<()>
Trait Implementations
impl Service for Client
[src]
impl Service for Client
fn start_request(&self, headers: Headers, body: HttpPartStream) -> Response
[src]
fn start_request(&self, headers: Headers, body: HttpPartStream) -> Response
impl Drop for Client
[src]
impl Drop for Client