nanohttp-response.c File Reference

#include "nanohttp-logging.h"
#include "nanohttp-error.h"
#include "nanohttp-common.h"
#include "nanohttp-socket.h"
#include "nanohttp-stream.h"
#include "nanohttp-mime.h"
#include "nanohttp-response.h"

Go to the source code of this file.

Functions

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


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