2009-04-22 15:25:41 -04:00
|
|
|
|
|
|
|
#ifndef __HTTPD_H__
|
|
|
|
#define __HTTPD_H__
|
|
|
|
|
2015-10-19 15:15:29 -04:00
|
|
|
#include <event2/http.h>
|
|
|
|
#include <event2/buffer.h>
|
2009-04-25 04:40:47 -04:00
|
|
|
|
2016-10-17 08:18:13 -04:00
|
|
|
enum httpd_send_flags
|
|
|
|
{
|
|
|
|
HTTPD_SEND_NO_GZIP = (1 << 0),
|
|
|
|
};
|
|
|
|
|
2009-04-25 04:40:47 -04:00
|
|
|
void
|
|
|
|
httpd_stream_file(struct evhttp_request *req, int id);
|
|
|
|
|
2010-05-03 12:19:41 -04:00
|
|
|
void
|
2016-10-17 08:18:13 -04:00
|
|
|
httpd_send_reply(struct evhttp_request *req, int code, const char *reason, struct evbuffer *evbuf, enum httpd_send_flags flags);
|
2010-05-03 12:19:41 -04:00
|
|
|
|
2009-05-02 11:20:33 -04:00
|
|
|
char *
|
|
|
|
httpd_fixup_uri(struct evhttp_request *req);
|
|
|
|
|
2009-05-01 14:58:15 -04:00
|
|
|
int
|
|
|
|
httpd_basic_auth(struct evhttp_request *req, char *user, char *passwd, char *realm);
|
|
|
|
|
2009-04-22 15:25:41 -04:00
|
|
|
int
|
|
|
|
httpd_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
httpd_deinit(void);
|
|
|
|
|
|
|
|
#endif /* !__HTTPD_H__ */
|