simple_hyper_client/
lib.rs

1/* Copyright (c) Fortanix, Inc.
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7mod async_client;
8pub mod blocking;
9mod connector;
10mod error;
11mod shared_body;
12
13pub use self::async_client::*;
14pub use self::connector::{
15    ConnectError, HttpConnection, HttpConnector, HyperConnectorAdapter, NetworkConnection,
16    NetworkConnector,
17};
18pub use self::error::Error;
19pub use self::shared_body::SharedBody;
20
21pub use hyper::body::{aggregate, to_bytes, Buf, Bytes, HttpBody};
22pub use hyper::{self, Method, StatusCode, Uri, Version};
23
24pub type Request = hyper::Request<SharedBody>;
25pub type Response = hyper::Response<hyper::Body>;
26
27#[doc(hidden)]
28pub mod connector_impl;