2009-04-22 21:25:41 +02:00
|
|
|
|
|
|
|
#ifndef __HTTPD_H__
|
|
|
|
#define __HTTPD_H__
|
|
|
|
|
2009-04-25 10:40:47 +02:00
|
|
|
#include <event.h>
|
2014-03-13 23:33:35 +01:00
|
|
|
#ifdef HAVE_LIBEVENT2
|
2014-05-29 23:22:00 +02:00
|
|
|
# include <event2/http.h>
|
2014-03-13 23:33:35 +01:00
|
|
|
#else
|
2014-05-29 23:22:00 +02:00
|
|
|
# include "evhttp/evhttp_compat.h"
|
2014-03-13 23:33:35 +01:00
|
|
|
#endif
|
2009-04-25 10:40:47 +02:00
|
|
|
|
|
|
|
void
|
|
|
|
httpd_stream_file(struct evhttp_request *req, int id);
|
|
|
|
|
2010-05-03 18:19:41 +02:00
|
|
|
void
|
|
|
|
httpd_send_reply(struct evhttp_request *req, int code, const char *reason, struct evbuffer *evbuf);
|
|
|
|
|
2009-05-02 17:20:33 +02:00
|
|
|
char *
|
|
|
|
httpd_fixup_uri(struct evhttp_request *req);
|
|
|
|
|
2009-05-01 20:58:15 +02:00
|
|
|
int
|
|
|
|
httpd_basic_auth(struct evhttp_request *req, char *user, char *passwd, char *realm);
|
|
|
|
|
2009-04-22 21:25:41 +02:00
|
|
|
int
|
|
|
|
httpd_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
httpd_deinit(void);
|
|
|
|
|
|
|
|
#endif /* !__HTTPD_H__ */
|