nanohttp-response.h File Reference

Go to the source code of this file.

Classes

struct  hresponse

Defines

#define HEADER_ACCEPT_RANGES   "Accept-Ranges"
#define HEADER_AGE   "Age"
#define HEADER_EXTENSION_TAG   "ETag"
#define HEADER_LOCATION   "Location"
#define HEADER_PROXY_AUTHENTICATE   "Proxy-Authenticate"
#define HEADER_RETRY_AFTER   "Retry-After"
#define HEADER_SERVER   "Server"
#define HEADER_VARY   "Vary"
#define HEADER_WWW_AUTHENTICATE   "WWW-Authenticate"

Typedefs

typedef hresponse hresponse_t

Functions

herror_t hresponse_new_from_socket (struct hsocket_t *sock, hresponse_t **out)
void hresponse_free (hresponse_t *res)


Typedef Documentation

typedef struct hresponse hresponse_t
 

HTTP response object


Function Documentation

void hresponse_free hresponse_t res  ) 
 

Definition at line 240 of file nanohttp-response.c.

References hresponse::attachments, attachments_free(), hresponse::content_type, content_type_free(), hresponse::header, hpairnode_free_deep(), http_input_stream_free(), and hresponse::in.

Referenced by hresponse_new_from_socket().

herror_t hresponse_new_from_socket struct hsocket_t sock,
hresponse_t **  out
 

Definition at line 157 of file nanohttp-response.c.

References hresponse::attachments, hresponse::content_type, hresponse::errcode, part_t::filename, GENERAL_HEADER_PARSE_ERROR, H_OK, hresponse::header, herror_new(), hresponse_free(), hsocket_recv(), http_input_stream_free(), http_input_stream_new(), http_input_stream_new_from_file(), hresponse::in, log_error1, MAX_HEADER_SIZE, mime_get_attachments(), attachments_t::root_part, and _content_type::type.

Referenced by httpc_get(), httpc_mime_end(), and httpc_post_end().


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