Libevent Code Doxygen document
Macros | Functions
http_compat.h File Reference
#include <event2/event-config.h>
#include <event2/util.h>
Include dependency graph for http_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define evhttp_request_uri   evhttp_request_get_uri
 

Functions

EVENT2_EXPORT_SYMBOL struct evhttpevhttp_start (const char *address, ev_uint16_t port)
 
EVENT2_EXPORT_SYMBOL struct evhttp_connectionevhttp_connection_new (const char *address, ev_uint16_t port)
 
EVENT2_EXPORT_SYMBOL void evhttp_connection_set_base (struct evhttp_connection *evcon, struct event_base *base)
 

Detailed Description

Potentially non-threadsafe versions of the functions in http.h: provided only for backwards compatibility.

Macro Definition Documentation

◆ evhttp_request_uri

#define evhttp_request_uri   evhttp_request_get_uri

Returns the request URI

Function Documentation

◆ evhttp_connection_new()

EVENT2_EXPORT_SYMBOL struct evhttp_connection* evhttp_connection_new ( const char *  address,
ev_uint16_t  port 
)

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.

Deprecated:
It does not allow an event base to be specified
Here is the call graph for this function:

◆ evhttp_connection_set_base()

EVENT2_EXPORT_SYMBOL void evhttp_connection_set_base ( struct evhttp_connection evcon,
struct event_base base 
)

Associates an event base with the connection - can only be called on a freshly created connection object that has not been used yet.

Deprecated:
XXXX Why?
Here is the call graph for this function:
Here is the caller graph for this function:

◆ evhttp_start()

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

Start an HTTP server on the specified address and port

Deprecated:
It does not allow an event base to be specified
Parameters
addressthe address to which the HTTP server should be bound
portthe port number on which the HTTP server should listen
Returns
a pointer to a newly initialized evhttp server structure or NULL on error
Here is the call graph for this function: