diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:51:24 +0000 |
commit | f7548d6d28c313cf80e6f3ef89aed16a19815df1 (patch) | |
tree | a3f6f2a3f247293bee59ecd28e8cd8ceb6ca064a /src/lib-http/http-transfer.h | |
parent | Initial commit. (diff) | |
download | dovecot-upstream.tar.xz dovecot-upstream.zip |
Adding upstream version 1:2.3.19.1+dfsg1.upstream/1%2.3.19.1+dfsg1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/lib-http/http-transfer.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 + |