Unverified Commit ecde55af authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

[http client]: re-export transport types. (#607)

* [http client]: re-export transport types.

Closing #605

* cargo fmt
parent 81cbe995
......@@ -35,7 +35,9 @@
//! [`async-std`](https://docs.rs/async-std/), [`smol`](https://docs.rs/smol) and similar.
mod client;
mod transport;
/// HTTP transport.
pub mod transport;
#[cfg(test)]
mod tests;
......
......@@ -36,7 +36,7 @@ impl HyperClient {
/// HTTP Transport Client.
#[derive(Debug, Clone)]
pub(crate) struct HttpTransportClient {
pub struct HttpTransportClient {
/// Target to connect to.
target: Uri,
/// HTTP client
......@@ -128,7 +128,7 @@ impl HttpTransportClient {
/// Error that can happen during a request.
#[derive(Debug, Error)]
pub(crate) enum Error {
pub enum Error {
/// Invalid URL.
#[error("Invalid Url: {0}")]
Url(String),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment