Module anterofit::net [] [src]

Anterofit's HTTP client framework, built on Hyper.

Works standalone, but designed to be used with the service!{} macro.

Reexports

pub use self::intercept::Interceptor;
pub use self::intercept::Chain;
pub use self::request::RequestHead;
pub use self::request::RequestBuilder;
pub use self::request::Request;
pub use self::response::FromResponse;
pub use self::response::Raw as RawResponse;

Modules

body

Types that can be serialized to bodies of HTTP requests.

header

Headers container, and common header fields.

intercept

Types for modifying outgoing requests on-the-fly, e.g. to add headers or query parameters.

request

Types for constructing and issuing HTTP requests.

response

Types concerning the responses from REST calls.

Structs

Adapter

The starting point of all Anterofit requests.

AdapterBuilder

A builder for Adapter. Call Adapter::builder() to get an instance.

Call

A handle representing a pending result to an executed request.

Headers

A map of header fields on requests and responses.

Enums

Method

The Request Method (VERB)

Traits

AbsAdapter

Implemented by Adapter. Mainly used to simplify generics.

ObjSafeAdapter

Object-safe subset of the adapter API.