Struct jsonrpc_client_http::HttpHandle[][src]

pub struct HttpHandle { /* fields omitted */ }

A handle to a HttpTransport. This implements jsonrpc_client_core::Transport and can be used as the transport for a RPC client generated by the jsonrpc_client! macro.

Methods

impl HttpHandle
[src]

Important traits for &'a mut R

Configure a custom HTTP header for all requests sent through this transport.

Replaces any header set by this library or by Hyper, such as the ContentType, ContentLength and Host headers.

Trait Implementations

impl Debug for HttpHandle
[src]

Formats the value using the given formatter. Read more

impl Clone for HttpHandle
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Transport for HttpHandle
[src]

The future type this transport returns on send operations.

The type of error that this transport emits if it fails.

Returns an id that has not yet been used on this transport. Used by the RPC clients to fill in the "id" field of a request. Read more

Sends the given data over the transport and returns a future that will complete with the response to the request, or the transport specific error if something went wrong. Read more

Auto Trait Implementations

impl Send for HttpHandle

impl !Sync for HttpHandle