From 0441d265f2bb9da249c7abf333f0f771fadb4ab5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 19:36:47 +0200 Subject: Adding upstream version 1:2.3.21+dfsg1. Signed-off-by: Daniel Baumann --- src/lib-http/http-transfer.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/lib-http/http-transfer.h (limited to 'src/lib-http/http-transfer.h') diff --git a/src/lib-http/http-transfer.h b/src/lib-http/http-transfer.h new file mode 100644 index 0000000..f3f6791 --- /dev/null +++ b/src/lib-http/http-transfer.h @@ -0,0 +1,26 @@ +#ifndef HTTP_TRANSFER_H +#define HTTP_TRANSFER_H + +struct http_transfer_param { + const char *attribute; + const char *value; +}; +ARRAY_DEFINE_TYPE(http_transfer_param, struct http_transfer_param); + +struct http_transfer_coding { + const char *name; + ARRAY_TYPE(http_transfer_param) parameters; + +}; +ARRAY_DEFINE_TYPE(http_transfer_coding, struct http_transfer_coding); + + +// FIXME: we currently lack a means to get error strings from the input stream + +struct istream * +http_transfer_chunked_istream_create(struct istream *input, uoff_t max_size); +struct ostream * + http_transfer_chunked_ostream_create(struct ostream *output); + +#endif + -- cgit v1.2.3