2009-04-24 09:41:20 -04:00
|
|
|
|
|
|
|
#ifndef __HTTPD_RSP_H__
|
|
|
|
#define __HTTPD_RSP_H__
|
|
|
|
|
|
|
|
#include <event.h>
|
2014-03-13 18:33:35 -04:00
|
|
|
#ifdef HAVE_LIBEVENT2
|
2014-05-29 17:22:00 -04:00
|
|
|
# include <event2/http.h>
|
2014-03-13 18:33:35 -04:00
|
|
|
#else
|
2014-05-29 17:22:00 -04:00
|
|
|
# include "evhttp/evhttp_compat.h"
|
2014-03-13 18:33:35 -04:00
|
|
|
#endif
|
2009-04-24 09:41:20 -04:00
|
|
|
|
|
|
|
int
|
|
|
|
rsp_init(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
rsp_deinit(void);
|
|
|
|
|
|
|
|
void
|
|
|
|
rsp_request(struct evhttp_request *req);
|
|
|
|
|
|
|
|
int
|
|
|
|
rsp_is_request(struct evhttp_request *req, char *uri);
|
|
|
|
|
|
|
|
#endif /* !__HTTPD_RSP_H__ */
|