-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Expand 103 handling to other non-specific 1XX messages. #7629
Conversation
cc @reschke |
102 doesn't specify any specific changes to timeout handling. |
|
||
// Early Hints (103) but not supported yet in OkHttp | ||
code == 103 -> true | ||
// Processing & Early Hints (103) but not supported yet in OkHttp |
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.
The comment is slightly misleading IMHO. Supporting 1xx codes means doing the same thing for all of them, except, well, for the exceptions (being 100 and 101).
It just means consuming the response, until final response is received (and potentially making the information about it available to the caller).
okhttp/src/jvmMain/kotlin/okhttp3/internal/http/CallServerInterceptor.kt
Outdated
Show resolved
Hide resolved
okhttp/src/jvmMain/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
Outdated
Show resolved
Hide resolved
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.
This is super overdue! Thanks.
(cherry picked from commit 7e4576c)
* Ignore early hints for 4.9.x (#7444) (cherry picked from commit b565eec) * Expand 103 handling to other non-specific 1XX messages. (#7629) (cherry picked from commit 7e4576c) * Cleanup * Add a test of 103 handling * Add copyright * Add copyright * Fix cache test for 102/103 (#7633) (cherry picked from commit 930f138) * Disable test
The basic implementation for #2257
Continuation of #7479
It doesn't have special handling of 102, such as resetting any timeouts.