[httpd] Allow caller of httpd_send_reply to avoid gzipping

This commit is contained in:
ejurgensen
2016-10-17 14:18:13 +02:00
parent d8696e72ea
commit 249d923af2
5 changed files with 32 additions and 26 deletions

View File

@@ -5,11 +5,16 @@
#include <event2/http.h>
#include <event2/buffer.h>
enum httpd_send_flags
{
HTTPD_SEND_NO_GZIP = (1 << 0),
};
void
httpd_stream_file(struct evhttp_request *req, int id);
void
httpd_send_reply(struct evhttp_request *req, int code, const char *reason, struct evbuffer *evbuf);
httpd_send_reply(struct evhttp_request *req, int code, const char *reason, struct evbuffer *evbuf, enum httpd_send_flags flags);
char *
httpd_fixup_uri(struct evhttp_request *req);