mirror of
https://github.com/TrueLayer/reqwest-middleware.git
synced 2024-12-26 10:56:32 +00:00
added other comments
This commit is contained in:
parent
fce3ea6d7e
commit
01b4ff9777
1 changed files with 2 additions and 0 deletions
|
@ -220,6 +220,8 @@ async fn assert_retry_on_incomplete_message() {
|
|||
let incomplete_message = "HTTP/1.1";
|
||||
let complete_message = "HTTP/1.1 200 OK\r\n\r\n";
|
||||
|
||||
// create a SimpleServer that returns the correct response after 3 attempts.
|
||||
// the first 3 attempts are incomplete http response and internally they result in a [`hyper::Error(IncompleteMessage)`] error.
|
||||
let simple_server = SimpleServer::new(
|
||||
"127.0.0.1",
|
||||
None,
|
||||
|
|
Loading…
Reference in a new issue