mirror of
https://github.com/curl/curl.git
synced 2026-07-30 19:28:03 +03:00
transfer: readwrite improvements
- changed header/chunk/handler->readwrite prototypes to accept `buf`, `blen` and a `pconsumed` pointer. They now get the buffer to work on and report back how many bytes they consumed - eliminated `k->str` in SingleRequest - improved excess data handling to properly calculate with any body data left in the headerb buffer - eliminated `k->badheader` enum to only be a bool Closes #12283
This commit is contained in:
parent
d9e7643ced
commit
1cd2f0072f
8 changed files with 269 additions and 246 deletions
|
|
@ -93,8 +93,8 @@ struct Curl_chunker {
|
|||
|
||||
/* The following functions are defined in http_chunks.c */
|
||||
void Curl_httpchunk_init(struct Curl_easy *data);
|
||||
CHUNKcode Curl_httpchunk_read(struct Curl_easy *data, char *datap,
|
||||
ssize_t length, ssize_t *wrote,
|
||||
CHUNKcode Curl_httpchunk_read(struct Curl_easy *data, char *buf,
|
||||
size_t blen, size_t *pconsumed,
|
||||
CURLcode *passthru);
|
||||
|
||||
#endif /* HEADER_CURL_HTTP_CHUNKS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue