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
5af12824
Unverified
Commit
5af12824
authored
Jul 27, 2022
by
Alexandru Vasile
Browse files
tower_http: Resubmit the same request for testing
Signed-off-by:
Alexandru Vasile
<
alexandru.vasile@parity.io
>
parent
25e33170
Pipeline
#204950
passed with stages
in 5 minutes and 14 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
examples/examples/tower_http.rs
View file @
5af12824
...
...
@@ -81,6 +81,9 @@ async fn main() -> anyhow::Result<()> {
let
_response
:
Result
<
String
,
_
>
=
client
.request
(
"unknown_method"
,
None
)
.await
;
let
_
=
client
.request
::
<
String
>
(
"say_hello"
,
None
)
.await
?
;
// Make the same request again.
let
_
=
client
.request
::
<
String
>
(
"say_hello"
,
None
)
.await
?
;
Ok
(())
}
...
...
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