37 #define WIN32_LEAN_AND_MEAN
40 #undef WIN32_LEAN_AND_MEAN
56 #define HTTP_NOCONTENT 204
57 #define HTTP_MOVEPERM 301
58 #define HTTP_MOVETEMP 302
59 #define HTTP_NOTMODIFIED 304
60 #define HTTP_BADREQUEST 400
61 #define HTTP_NOTFOUND 404
62 #define HTTP_SERVUNAVAIL 503
158 const char *reason,
struct evbuffer *databuf);
161 void evhttp_send_reply_start(
struct evhttp_request *,
int,
const char *);
179 enum evhttp_cmd_type { EVHTTP_REQ_GET, EVHTTP_REQ_POST, EVHTTP_REQ_HEAD };
181 enum evhttp_request_kind { EVHTTP_REQUEST, EVHTTP_RESPONSE };
189 #if defined(TAILQ_ENTRY)
201 #define EVHTTP_REQ_OWN_CONNECTION 0x0001
202 #define EVHTTP_PROXY_REQUEST 0x0002
204 struct evkeyvalq *input_headers;
205 struct evkeyvalq *output_headers;
211 enum evhttp_request_kind kind;
212 enum evhttp_cmd_type
type;
220 char *response_code_line;
261 const char *address,
unsigned short port);
268 const char *address);
272 unsigned short port);
276 int timeout_in_secs);
295 char **address, u_short *port);
300 enum evhttp_cmd_type
type,
const char *uri);
306 const char *evhttp_find_header(
const struct evkeyvalq *,
const char *);
307 int evhttp_remove_header(
struct evkeyvalq *,
const char *);
308 int evhttp_add_header(
struct evkeyvalq *,
const char *,
const char *);
309 void evhttp_clear_headers(
struct evkeyvalq *);