evhttp_request

the request structure that a server receives. WARNING: expect this structure to change. I will try to provide reasonable accessors.

Members

Manifest constants

EVHTTP_PROXY_REQUEST
enum EVHTTP_PROXY_REQUEST;

Request was made via a proxy

EVHTTP_REQ_DEFER_FREE
enum EVHTTP_REQ_DEFER_FREE;

The request will be used again upstack; freeing must be deferred

EVHTTP_REQ_NEEDS_FREE
enum EVHTTP_REQ_NEEDS_FREE;

The request should be freed upstack

EVHTTP_REQ_OWN_CONNECTION
enum EVHTTP_REQ_OWN_CONNECTION;

The request obj owns the evhttp connection and needs to free it

EVHTTP_USER_OWNED
enum EVHTTP_USER_OWNED;

The request object is owned by the user; the user must free it

Structs

next_
struct next_
Undocumented in source.

Variables

body_size
size_t body_size;
Undocumented in source.
cb
ExternC!(void function(evhttp_request*, void*)) cb;
Undocumented in source.
cb_arg
void* cb_arg;
Undocumented in source.
chunk_cb
ExternC!(void function(evhttp_request*, void*)) chunk_cb;
Undocumented in source.
evcon
evhttp_connection* evcon;
Undocumented in source.
flags
int flags;
Undocumented in source.
headers_size
size_t headers_size;
Undocumented in source.
host_cache
char* host_cache;
Undocumented in source.
input_buffer
evbuffer* input_buffer;
Undocumented in source.
input_headers
evkeyvalq* input_headers;
Undocumented in source.
kind
evhttp_request_kind kind;
Undocumented in source.
major
char major;
Undocumented in source.
minor
char minor;
Undocumented in source.
next
next_ next;
Undocumented in source.
ntoread
ev_int64_t ntoread;
Undocumented in source.
output_buffer
evbuffer* output_buffer;
Undocumented in source.
output_headers
evkeyvalq* output_headers;
Undocumented in source.
remote_host
char* remote_host;
Undocumented in source.
remote_port
ev_uint16_t remote_port;
Undocumented in source.
response_code
int response_code;
Undocumented in source.
response_code_line
char* response_code_line;
Undocumented in source.
type
evhttp_cmd_type type;
Undocumented in source.
uri
char* uri;
Undocumented in source.
uri_elems
evhttp_uri* uri_elems;
Undocumented in source.

Meta