Module foundation::prelude [] [src]

Reexports

pub use super::util;
pub use util::url_join;

Structs

Accept

Accept header, defined in RFC7231

Authorization

Authorization header, defined in RFC7235

Body

A Stream for Chunks used in requests and responses.

Client

A Client to make outgoing HTTP requests.

ContentType

Content-Type header, defined in RFC7231

Core

An event loop.

ETag

ETag header, defined in RFC7232

Headers

A map of header fields on requests and responses.

HttpsConnector

A Connector for the https scheme.

Mime

A parsed mime or media type.

Rc

A single-threaded reference-counting pointer. 'Rc' stands for 'Reference Counted'.

RefCell

A mutable memory location with dynamically checked borrow rules

Request

An HTTP Request

Uri

The Request-URI of a Request's StartLine.

UserAgent

User-Agent header, defined in RFC7231

Enums

FoundationError
HttpVersion

Represents a version of the HTTP spec.

IfNoneMatch

If-None-Match header, defined in RFC7232

Method

The Request Method (VERB)

StatusCode

An HTTP status code (status-code in RFC 7230 et al.).

Traits

DeserializeOwned

A data structure that can be deserialized without borrowing any data from the deserializer.

Executor
Future

Trait for types which are a placeholder of a value that may become available at some later point in time.

Stream

A stream of values, not all of which may have been produced yet.

Functions

ok

Creates a "leaf future" from an immediate value of a finished and successful computation.

qitem

Convenience function to wrap a value in a QualityItem Sets q to the default 1.0