Home | History | Annotate | Download | only in event2

Lines Matching full:evhttp

67 struct evhttp;
77 * @return a pointer to a newly initialized evhttp server structure
80 struct evhttp *evhttp_new(struct event_base *base);
88 * @param http a pointer to an evhttp object
94 int evhttp_bind_socket(struct evhttp *http, const char *address, ev_uint16_t port);
101 * @param http a pointer to an evhttp object
107 struct evhttp_bound_socket *evhttp_bind_socket_with_handle(struct evhttp *http, const char *address, ev_uint16_t port);
120 * @param http a pointer to an evhttp object
125 int evhttp_accept_socket(struct evhttp *http, evutil_socket_t fd);
132 * @param http a pointer to an evhttp object
137 struct evhttp_bound_socket *evhttp_accept_socket_with_handle(struct evhttp *http, evutil_socket_t fd);
144 struct evhttp_bound_socket *evhttp_bind_listener(struct evhttp *http, struct evconnlistener *listener);
164 * @param http a pointer to an evhttp object
168 void evhttp_del_accept_socket(struct evhttp *http, struct evhttp_bound_socket *bound_socket);
184 * @param http the evhttp server object to be freed
187 void evhttp_free(struct evhttp* http);
190 void evhttp_set_max_headers_size(struct evhttp* http, ev_ssize_t max_headers_size);
192 void evhttp_set_max_body_size(struct evhttp* http, ev_ssize_t max_body_size);
205 void evhttp_set_allowed_methods(struct evhttp* http, ev_uint16_t methods);
216 int evhttp_set_cb(struct evhttp *http, const char *path,
220 int evhttp_del_cb(struct evhttp *, const char *);
229 @param http the evhttp server object for which to set the callback
233 void evhttp_set_gencb(struct evhttp *http,
239 A virtual host is a newly initialized evhttp object that has request
250 @param http the evhttp object to which to add a virtual host
258 int evhttp_add_virtual_host(struct evhttp* http, const char *pattern,
259 struct evhttp* vhost);
264 @param http the evhttp object from which to remove the virtual host
269 int evhttp_remove_virtual_host(struct evhttp* http, struct evhttp* vhost);
275 @param http the evhttp object
279 int evhttp_add_server_alias(struct evhttp *http, const char *alias);
284 @param http the evhttp object
288 int evhttp_remove_server_alias(struct evhttp *http, const char *alias);
293 * @param http an evhttp object
296 void evhttp_set_timeout(struct evhttp *http, int timeout_in_secs);
370 /** The different request types supported by evhttp. These are as specified