libasyncd
ad_http_s Struct Reference

Data Fields

struct {
   enum ad_http_request_status_e   status
 
   struct evbuffer *   inbuf
 
   char *   method
 
   char *   uri
 
   char *   httpver
 
   char *   path
 
   char *   query
 
   qlisttbl_t *   headers
 
   char *   host
 
   char *   domain
 
   off_t   contentlength
 
   size_t   bodyin
 
request
 
struct {
   struct evbuffer *   outbuf
 
   bool   frozen_header
 
   int   code
 
   char *   reason
 
   qlisttbl_t *   headers
 
   off_t   contentlength
 
   size_t   bodyout
 
response
 

Detailed Description

Definition at line 133 of file ad_http_handler.h.

Field Documentation

enum ad_http_request_status_e ad_http_s::status

request status.

Definition at line 136 of file ad_http_handler.h.

struct evbuffer* ad_http_s::inbuf

input data buffer.

Definition at line 137 of file ad_http_handler.h.

char* ad_http_s::method

request method ex) GET

Definition at line 140 of file ad_http_handler.h.

char* ad_http_s::uri

url+query ex) /data%20path?query=the%20value

Definition at line 141 of file ad_http_handler.h.

char* ad_http_s::httpver

version ex) HTTP/1.1

Definition at line 142 of file ad_http_handler.h.

char* ad_http_s::path

decoded path ex) /data path

Definition at line 143 of file ad_http_handler.h.

char* ad_http_s::query

query string ex) query=the%20value

Definition at line 144 of file ad_http_handler.h.

qlisttbl_t* ad_http_s::headers

parsed request header entries

response header entries

Definition at line 147 of file ad_http_handler.h.

char* ad_http_s::host

host ex) www.domain.com or www.domain.com:8080

Definition at line 148 of file ad_http_handler.h.

char* ad_http_s::domain

domain name ex) www.domain.com (no port number)

Definition at line 149 of file ad_http_handler.h.

off_t ad_http_s::contentlength

value of Content-Length header.

content length in response

Definition at line 150 of file ad_http_handler.h.

size_t ad_http_s::bodyin

bytes moved to in-buff

Definition at line 151 of file ad_http_handler.h.

struct { ... } ad_http_s::request
struct evbuffer* ad_http_s::outbuf

output data buffer.

Definition at line 156 of file ad_http_handler.h.

bool ad_http_s::frozen_header

indicator whether we sent header out or not

Definition at line 157 of file ad_http_handler.h.

int ad_http_s::code

response status-code

Definition at line 160 of file ad_http_handler.h.

char* ad_http_s::reason

reason-phrase

Definition at line 161 of file ad_http_handler.h.

size_t ad_http_s::bodyout

bytes added to out-buffer

Definition at line 164 of file ad_http_handler.h.

struct { ... } ad_http_s::response

The documentation for this struct was generated from the following file: