-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[http client]: refactor with "syncronous-like" design #156
Merged
+445
−677
Merged
Changes from 3 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
d637b8d
experimental
niklasad1 3581cce
ci(benches): sync and concurrent roundtrips
niklasad1 b278010
ci(benches): sync and concurrent roundtrips
niklasad1 10cfe8c
fix(nits)
niklasad1 cf12a2f
feat(http client): limit max request body size
niklasad1 0b569f7
test(http transport): request limit test
niklasad1 3e2827d
test(http client): add tests.
niklasad1 a453d99
fix typo
niklasad1 1740d2e
fix(benches): make it compile again.
niklasad1 dd72e6a
fix(ws example): revert unintentional change.
niklasad1 a904bc2
test(http client): subscription response on call.
niklasad1 5d06d5d
fix(cleanup)
niklasad1 6a43545
fix(benches): make it compile again.
niklasad1 a6d9493
Update src/client/http/transport.rs
niklasad1 c1ebc08
fix(http client): `&str` -> `AsRef<str>`
niklasad1 a3ae6ea
docs(client types): better docs for Mismatch type.
niklasad1 be70049
style: `Default::default` -> `HttpConfig::default`
niklasad1 19c6c9c
fix(http client): read body size from header.
niklasad1 58bb1cc
test(raw http): enable tests to works again.
niklasad1 d4c0bcc
style: cargo fmt
niklasad1 77a9fe5
benches: address grumbles
niklasad1 fee846f
feat(jsonrpc response/request): impl `Display`
niklasad1 0714a11
refactor(logging): use display impl
niklasad1 1929b08
Merge branch 'v2' into v2-http-client-syncronous-call-structure
niklasad1 a3d6355
Merge remote-tracking branch 'origin/v2' into v2-http-client-syncrono…
niklasad1 9ef8736
fix(http client): nits.
niklasad1 e1d7f3c
Update benches/benches.rs
niklasad1 abc81c6
fix bad merge.
niklasad1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
mod client; | ||
mod raw; | ||
mod transport; | ||
|
||
pub use client::Client; | ||
pub use raw::RawClient; | ||
pub use transport::HttpTransportClient; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious: why switch to Tokio here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hyper
only works withtokio
, Pierre spawned a background thread around that just to support any runtime.If we go ahead with this change it should be clearly documented or spawn a background thread for it again.