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]
impl Builderpub fn new() -> Builder[src]
pub fn new() -> BuilderCreates a new connection builder.
pub fn http2_only(&mut self, enabled: bool) -> &mut Builder[src]
pub fn http2_only(&mut self, enabled: bool) -> &mut BuilderSets whether HTTP2 is required.
Default is false.
pub fn handshake<T, B>(&self, io: T) -> Handshake<T, B> where
T: AsyncRead + AsyncWrite + Send + 'static,
B: Payload + 'static, [src]
pub fn handshake<T, B>(&self, io: T) -> Handshake<T, B> where
T: AsyncRead + AsyncWrite + Send + 'static,
B: Payload + 'static, Constructs a connection with the configured options and IO.
Trait Implementations
impl Clone for Builder[src]
impl Clone for Builderfn clone(&self) -> Builder[src]
fn clone(&self) -> BuilderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Builder[src]
impl Debug for Builder