Crate simple_hyper_client

Source

Re-exports§

pub use hyper;

Modules§

blocking
This module provides a blocking interface on top of hyper’s HTTP client.

Structs§

Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
Client
A wrapper for hyper’s Client type providing a simpler interface
ClientBuilder
A builder for Client
ConnectError
HttpConnection
A wrapper around tokio::net::TcpStream
HttpConnector
A simple HTTP connector
HyperConnectorAdapter
An adapter that given T: hyper::client::connect::Connect implements NetworkConnector
Method
The Request Method (VERB)
NetworkConnection
A boxed network connection
RequestBuilder
An HTTP request builder
SharedBody
This is an alternative to hyper::Body for use with HTTP Requests
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.

Enums§

Error

Traits§

Buf
Read bytes from a buffer.
HttpBody
Trait representing a streaming body of a Request or Response.
NetworkConnector
Network connector trait with type erasure

Functions§

aggregate
Aggregate the data buffers from a body asynchronously.
to_bytes
Concatenate the buffers from a body into a single Bytes asynchronously.

Type Aliases§

Request
Response