nanohttp-request.h File Reference

Go to the source code of this file.

Classes

struct  request_statistics
struct  hrequest_t

Defines

#define HEADER_ACCEPT   "Accept"
#define HEADER_ACCEPT_CHARSET   "Accept-Charset"
#define HEADER_ACCEPT_ENCODING   "Accept-Encoding"
#define HEADER_ACCEPT_LANGUAGE   "Accept-Language"
#define HEADER_AUTHORIZATION   "Authorization"
#define HEADER_EXPECT   "Expect"
#define HEADER_FROM   "From"
#define HEADER_HOST   "Host"
#define HEADER_IF_MATCH   "If-Match"
#define HEADER_IF_MODIFIED_SINCE   "If-Modified-Since"
#define HEADER_IF_NONE_MATCH   "If-None-Match"
#define HEADER_IF_RANGE   "If-Range"
#define HEADER_IF_UNMODIFIED_SINCE   "If-Unmodified-Since"
#define HEADER_IF_MAX_FORWARDS   "Max-Forwards"
#define HEADER_PROXY_AUTHORIZATION   "Proxy-Authorization"
#define HEADER_RANGE   "Range"
#define HEADER_REFERER   "Referer"
#define HEADER_TRANSFER_EXTENSION   "TE"
#define HEADER_USER_AGENT   "User-Agent"

Functions

herror_t hrequest_new_from_socket (struct hsocket_t *sock, struct hrequest_t **out)
void hrequest_free (struct hrequest_t *req)


Function Documentation

void hrequest_free struct hrequest_t req  ) 
 

Definition at line 247 of file nanohttp-request.c.

References hrequest_t::attachments, attachments_free(), hrequest_t::content_type, content_type_free(), hrequest_t::header, hpairnode_free_deep(), http_input_stream_free(), hrequest_t::in, hrequest_t::query, and hrequest_t::statistics.

herror_t hrequest_new_from_socket struct hsocket_t sock,
struct hrequest_t **  out
 

Definition at line 273 of file nanohttp-request.c.

References H_OK, herror_message(), hsocket_recv(), log_error2, and MAX_HEADER_SIZE.


Generated on Thu Jan 25 23:36:03 2007 for csoap by  doxygen 1.4.6