http: refactor http_on_response into sub functions

Reduces complexity.

Closes #21172
This commit is contained in:
Daniel Stenberg 2026-03-31 07:56:45 +02:00
parent a5838847c4
commit 1ec912d292
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
2 changed files with 261 additions and 210 deletions

View file

@ -70,7 +70,6 @@ extern struct Curl_cftype Curl_cft_nghttp2;
#define Curl_http2_request_upgrade(x, y) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_http2_switch(a) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_http2_upgrade(a, b, c, d, e) CURLE_UNSUPPORTED_PROTOCOL
#define Curl_h2_http_1_1_error(x) 0
#endif