26 std::function<
bool(
const char* data,
size_t len)> writeFn,
std::string getBuffer() const
Get the current buffer content.
void parseChunks(size_t maxLength)
void feed(const std::string &data, size_t maxLength=MAX_HTTP_BODY_LENGTH)
bool wasTruncated() const
Set if the content-length is longer than the maximum value allowed.
bool feedToFile(const std::string &data, std::function< bool(const char *data, size_t len)> writeFn, size_t maxLength=MAX_HTTP_BODY_LENGTH)
Feed data to the decoder, writing it to a file using the provided write function.
Delegates to user or system configuration.
#define MAX_HTTP_BODY_LENGTH
Maximum HTTP body size in bytes.