.TH "event2/http_compat.h" 3 "libevent-2.1.13-stable" \" -*- nroff -*-
.ad l
.nh
.SH NAME
event2/http_compat.h \- Potentially non-threadsafe versions of the functions in \fBhttp\&.h\fP: provided only for backwards compatibility\&.  

.SH SYNOPSIS
.br
.PP
\fR#include <event2/event\-config\&.h>\fP
.br
\fR#include <event2/util\&.h>\fP
.br

.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBevhttp_request_uri\fP   \fBevhttp_request_get_uri\fP"
.br
.RI "Returns the request URI\&. "
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "EVENT2_EXPORT_SYMBOL struct evhttp_connection * \fBevhttp_connection_new\fP (const char *address, ev_uint16_t port)"
.br
.RI "A connection object that can be used to for making HTTP requests\&. "
.ti -1c
.RI "EVENT2_EXPORT_SYMBOL void \fBevhttp_connection_set_base\fP (struct evhttp_connection *evcon, struct \fBevent_base\fP *base)"
.br
.RI "Associates an event base with the connection - can only be called on a freshly created connection object that has not been used yet\&. "
.ti -1c
.RI "EVENT2_EXPORT_SYMBOL struct evhttp * \fBevhttp_start\fP (const char *address, ev_uint16_t port)"
.br
.RI "Start an HTTP server on the specified address and port\&. "
.in -1c
.SH "Detailed Description"
.PP 
Potentially non-threadsafe versions of the functions in \fBhttp\&.h\fP: provided only for backwards compatibility\&. 


.SH "Function Documentation"
.PP 
.SS "EVENT2_EXPORT_SYMBOL struct evhttp_connection * evhttp_connection_new (const char * address, ev_uint16_t port)"

.PP
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\&.

.PP
\fBDeprecated\fP
.RS 4
It does not allow an event base to be specified 
.RE
.PP

.SS "EVENT2_EXPORT_SYMBOL void evhttp_connection_set_base (struct evhttp_connection * evcon, struct \fBevent_base\fP * base)"

.PP
Associates an event base with the connection - can only be called on a freshly created connection object that has not been used yet\&. 
.PP
\fBDeprecated\fP
.RS 4
XXXX Why? 
.RE
.PP

.SS "EVENT2_EXPORT_SYMBOL struct evhttp * evhttp_start (const char * address, ev_uint16_t port)"

.PP
Start an HTTP server on the specified address and port\&. 
.PP
\fBDeprecated\fP
.RS 4
It does not allow an event base to be specified
.RE
.PP

.PP
\fBParameters\fP
.RS 4
\fIaddress\fP the address to which the HTTP server should be bound 
.br
\fIport\fP the port number on which the HTTP server should listen 
.RE
.PP
\fBReturns\fP
.RS 4
a pointer to a newly initialized evhttp server structure or NULL on error 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for libevent-2\&.1\&.13-stable from the source code\&.
