diff options
Diffstat (limited to 'backends/networking/curl/curljsonrequest.h')
| -rw-r--r-- | backends/networking/curl/curljsonrequest.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/networking/curl/curljsonrequest.h b/backends/networking/curl/curljsonrequest.h index bd6f135786..5a51065ca9 100644 --- a/backends/networking/curl/curljsonrequest.h +++ b/backends/networking/curl/curljsonrequest.h @@ -32,10 +32,13 @@ namespace Networking { typedef Response<Common::JSONValue *> JsonResponse; typedef Common::BaseCallback<JsonResponse> *JsonCallback; +#define CURL_JSON_REQUEST_BUFFER_SIZE 512 * 1024 + class CurlJsonRequest: public CurlRequest { protected: JsonCallback _jsonCallback; Common::MemoryWriteStreamDynamic _contentsStream; + byte *_buffer; /** Prepares raw bytes from _contentsStream to be parsed with Common::JSON::parse(). */ char *getPreparedContents(); |
