tetsy_fetch/lib.rs
1// Copyright 2015-2020 Parity Technologies (UK) Ltd.
2// This file is part of Tetsy Vapory.
3
4// Tetsy Vapory is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Tetsy Vapory is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Tetsy Vapory. If not, see <http://www.gnu.org/licenses/>.
16
17//! A service to fetch any HTTP / HTTPS content.
18
19#![warn(missing_docs)]
20
21#[macro_use]
22extern crate log;
23
24#[macro_use]
25extern crate futures;
26
27extern crate hyper;
28extern crate hyper_rustls;
29extern crate http;
30
31extern crate tokio;
32extern crate url;
33extern crate bytes;
34
35/// Fetch client implementation.
36pub mod client;
37
38pub use url::Url;
39pub use self::client::{Client, Fetch, Error, Response, Request, Abort, BodyReader};
40pub use hyper::Method;