mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:43:33 +03:00
http: separate response parsing from response action
- move code that triggers on end-of-response into separate function from parsing - simplify some headp/headerlen usage - add `httpversion` to SingleRequest to indicate the version of the current response Closes #13134
This commit is contained in:
parent
0c820427f2
commit
0f08b43557
3 changed files with 340 additions and 318 deletions
|
|
@ -78,6 +78,7 @@ struct SingleRequest {
|
|||
first one */
|
||||
curl_off_t offset; /* possible resume offset read from the
|
||||
Content-Range: header */
|
||||
int httpversion; /* Version in response (09, 10, 11, etc.) */
|
||||
int httpcode; /* error code from the 'HTTP/1.? XXX' or
|
||||
'RTSP/1.? XXX' line */
|
||||
int keepon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue