diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-08-17 00:49:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-08-18 15:48:08 +0200 |
commit | e6e9b006f770ef104fbcdef32dd6e7f42eb114b7 (patch) | |
tree | 6540dd5559e06f6ae7052c743dd0359cad960bcd /lib/transfer.h | |
parent | 4939f3652473c1519d2b604068efb87ef7531874 (diff) | |
download | curl-e6e9b006f770ef104fbcdef32dd6e7f42eb114b7.tar.gz |
upload: allocate upload buffer on-demand
Saves 16KB on the easy handle for operations that don't need that
buffer.
Part 1 of #2888
Diffstat (limited to 'lib/transfer.h')
-rw-r--r-- | lib/transfer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/transfer.h b/lib/transfer.h index 9ba398d27..df75f9a97 100644 --- a/lib/transfer.h +++ b/lib/transfer.h @@ -54,6 +54,7 @@ CURLcode Curl_readrewind(struct connectdata *conn); CURLcode Curl_fillreadbuffer(struct connectdata *conn, int bytes, int *nreadp); CURLcode Curl_retry_request(struct connectdata *conn, char **url); bool Curl_meets_timecondition(struct Curl_easy *data, time_t timeofdoc); +CURLcode Curl_get_upload_buffer(struct Curl_easy *data); /* This sets up a forthcoming transfer */ void |