Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
ecde55af
Unverified
Commit
ecde55af
authored
Dec 14, 2021
by
Niklas Adolfsson
Committed by
GitHub
Dec 14, 2021
Browse files
[http client]: re-export transport types. (#607)
* [http client]: re-export transport types. Closing #605 * cargo fmt
parent
81cbe995
Changes
2
Hide whitespace changes
Inline
Side-by-side
http-client/src/lib.rs
View file @
ecde55af
...
...
@@ -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
;
...
...
http-client/src/transport.rs
View file @
ecde55af
...
...
@@ -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
),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment