Skip to main content

Module transport

Module transport 

Source
Expand description

The Http wire and the Transport traits: any request out with its method, headers and body, the JSON posts to /info and /exchange every read and action goes through, and what /exchange answers.

Re-exports§

pub use answer::Accepted;
pub use answer::ExchangeResponse;
pub use answer::Status;
pub use calls::ApiError;
pub use calls::EXCHANGE;
pub use calls::INFO;
pub use calls::Transport;
pub use calls::exchange;
pub use calls::info;
pub use calls::info_request;
pub use calls::user_request;
pub use wire::Http;
pub use wire::Method;
pub use wire::Request;
pub use wire::Response;
pub use wire::TransportError;

Modules§

answer
What /exchange answers: an accepted action with its per-item statuses, or the venue’s refusal in its own words.
calls
The Transport every read and action goes through, the /info bodies, and the /info and /exchange calls themselves: a read once, a signed action once and never again.
wire
The Http wire: one request out, with its method, headers and body, and its answer back whatever the status. A host or a dependent plugs in here.