1 .TH "event2/http_compat.h" 3 "Tue Jan 27 2015" "libevent" \" -*- nroff -*-
5 event2/http_compat.h \-
7 Potentially non-threadsafe versions of the functions in \fBhttp\&.h\fP: provided only for backwards compatibility\&.
12 \fC#include <event2/event-config\&.h>\fP
14 \fC#include <event2/util\&.h>\fP
21 .RI "#define \fBevhttp_request_uri\fP \fBevhttp_request_get_uri\fP"
23 .RI "\fIReturns the request URI\&. \fP"
29 .RI "struct evhttp_connection * \fBevhttp_connection_new\fP (const char *address, unsigned short port)"
31 .RI "\fIA connection object that can be used to for making HTTP requests\&. \fP"
33 .RI "void \fBevhttp_connection_set_base\fP (struct evhttp_connection *evcon, struct \fBevent_base\fP *base)"
35 .RI "\fIAssociates an event base with the connection - can only be called on a freshly created connection object that has not been used yet\&. \fP"
37 .RI "struct evhttp * \fBevhttp_start\fP (const char *address, unsigned short port)"
39 .RI "\fIStart an HTTP server on the specified address and port\&. \fP"
41 .SH "Detailed Description"
43 Potentially non-threadsafe versions of the functions in \fBhttp\&.h\fP: provided only for backwards compatibility\&.
46 .SH "Function Documentation"
48 .SS "struct evhttp_connection* evhttp_connection_new (const char *address, unsigned shortport)"
51 A connection object that can be used to for making HTTP requests\&. The connection object tries to establish the connection when it is given an http request object\&.
55 It does not allow an event base to be specified
59 .SS "void evhttp_connection_set_base (struct evhttp_connection *evcon, struct \fBevent_base\fP *base)"
62 Associates an event base with the connection - can only be called on a freshly created connection object that has not been used yet\&.
70 .SS "struct evhttp* evhttp_start (const char *address, unsigned shortport)"
73 Start an HTTP server on the specified address and port\&.
77 It does not allow an event base to be specified
83 \fIaddress\fP the address to which the HTTP server should be bound
85 \fIport\fP the port number on which the HTTP server should listen
90 an struct evhttp object
96 Generated automatically by Doxygen for libevent from the source code\&.