Struct httpbis::client::HttpClient
[−]
[src]
pub struct HttpClient { /* fields omitted */ }
Methods
impl HttpClient
[src]
fn new(
host: &str,
port: u16,
tls: bool,
conf: HttpClientConf
) -> HttpResult<HttpClient>
host: &str,
port: u16,
tls: bool,
conf: HttpClientConf
) -> HttpResult<HttpClient>
fn new_expl(
addr: &SocketAddr,
tls: ClientTlsOption,
conf: HttpClientConf
) -> HttpResult<HttpClient>
addr: &SocketAddr,
tls: ClientTlsOption,
conf: HttpClientConf
) -> HttpResult<HttpClient>
fn start_request(
&self,
headers: Headers,
body: HttpFutureStreamSend<Bytes>
) -> HttpPartFutureStreamSend
&self,
headers: Headers,
body: HttpFutureStreamSend<Bytes>
) -> HttpPartFutureStreamSend
fn start_request_simple(
&self,
headers: Headers,
body: Bytes
) -> HttpPartFutureStreamSend
&self,
headers: Headers,
body: Bytes
) -> HttpPartFutureStreamSend
fn start_get(&self, path: &str, authority: &str) -> HttpPartFutureStreamSend
fn start_post(
&self,
path: &str,
authority: &str,
body: Bytes
) -> HttpPartFutureStreamSend
&self,
path: &str,
authority: &str,
body: Bytes
) -> HttpPartFutureStreamSend
fn start_get_simple_response(
&self,
path: &str,
authority: &str
) -> HttpFutureSend<SimpleHttpMessage>
&self,
path: &str,
authority: &str
) -> HttpFutureSend<SimpleHttpMessage>
fn start_post_simple_response(
&self,
path: &str,
authority: &str,
body: Bytes
) -> HttpFutureSend<SimpleHttpMessage>
&self,
path: &str,
authority: &str,
body: Bytes
) -> HttpFutureSend<SimpleHttpMessage>