view src/lib-http/http-transfer.h @ 19604:c996bc091c6b

master: Do not close stdout if going foreground This lets one to use /dev/stdout for logging. Mainly useful for testing purposes where we can generate log output to stdout and use tee to write it to a file for later examination.
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Mon, 18 Jan 2016 15:50:23 +0200
parents a335db9dca6a
children
line wrap: on
line source

#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