Struct hyper::client::conn::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
A builder to configure an HTTP connection.
After setting options, the builder is used to create a Handshake
future.
Methods
impl Builder
[src]
pub fn new() -> Builder
[src]
Creates a new connection builder.
pub fn handshake<T, B>(&self, io: T) -> Handshake<T, B> where
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
[src]
T: AsyncRead + AsyncWrite,
B: Stream<Error = Error> + 'static,
B::Item: AsRef<[u8]>,
Constructs a connection with the configured options and IO.
Trait Implementations
impl Clone for Builder
[src]
fn clone(&self) -> Builder
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more