Struct tk_http::client::Proto [] [src]

pub struct Proto<S, C: Codec<S>> { /* fields omitted */ }

A low-level HTTP/1.x client protocol handler

Note, most of the time you need some reconnection facility and/or connection pooling on top of this interface

Methods

impl<S, C: Codec<S>> Proto<S, C>
[src]

[src]

Create a new protocol implementation from a TCP connection and a config

You should use this protocol as a Sink

impl<C: Codec<TcpStream>> Proto<TcpStream, C>
[src]

[src]

A convenience method to establish connection and create a protocol instance

Trait Implementations

impl<S: AsyncRead + AsyncWrite, C: Codec<S>> Sink for Proto<S, C>
[src]

The type of value that the sink accepts.

The type of value produced by the sink when an error occurs.

[src]

Begin the process of sending a value to the sink. Read more

[src]

Flush all output from this sink, if necessary. Read more

[src]

A method to indicate that no more values will ever be pushed into this sink. Read more

[src]

Creates a new object which will produce a synchronous sink. Read more

[src]

Composes a function in front of the sink. Read more

[src]

Composes a function in front of the sink. Read more

[src]

Transforms the error returned by the sink.

[src]

Map this sink's error to any error implementing From for this sink's Error, returning a new sink. Read more

[src]

Adds a fixed-size buffer to the current sink. Read more

[src]

A future that completes when the sink has finished processing all pending requests. Read more

[src]

A future that completes after the given item has been fully processed into the sink, including flushing. Read more

[src]

A future that completes after the given stream has been fully processed into the sink, including flushing. Read more