http_message_t Struct Reference
Collaboration diagram for http_message_t:
[legend]

## Data Fields

int | initialized
http_method_t | method
uri_type | uri
http_method_t | request_method
int | status_code
membuffer | status_msg
size_t | amount_discarded
int | is_request
int | major_version
int | minor_version
LinkedList | headers
memptr | entity
membuffer | msg
char * | urlbuf

## Field Documentation

## amount_discarded

size_t http_message_t::amount_discarded

response only. the amount of data that's been read by the user, that's no longer in the raw message buffer.

Referenced by http_ReadHttpResponse().

## entity

memptr http_message_t::entity

message body(entity).

Referenced by gena_process_notification_event(), http_ReadHttpResponse(), http_RecvPostMessage(), and soap_device_callback().

## headers

LinkedList http_message_t::headers

Referenced by CheckOtherHTTPHeaders(), ExtraHTTPHeaders(), http_GetHttpResponse(), and print_http_headers().

## is_request

int http_message_t::is_request

if 1, msg is a request, else response.

Referenced by print_http_headers(), and ssdp_handle_ctrlpt_msg().

## method

http_method_t http_message_t::method

request only.

Referenced by check_soapaction_hdr(), genaCallback(), get_mpost_acton_hdrval(), print_http_headers(), process_request(), ssdp_event_handler_thread(), start_event_handler(), and valid_ssdp_msg().

## msg

membuffer http_message_t::msg

entire raw message.

Referenced by gena_process_notification_event(), http_ReadHttpResponse(), http_RecvMessage(), http_RecvPostMessage(), readFromSSDPSocket(), and ReadResponseLineAndHeaders().

## request_method

http_method_t http_message_t::request_method

response only.

Referenced by ssdp_event_handler_thread(), and valid_ssdp_msg().

## status_code

int http_message_t::status_code

response only.

Referenced by gena_subscribe(), gena_unsubscribe(), genaNotify(), http_GetHttpResponse(), print_http_headers(), and ssdp_handle_ctrlpt_msg().

## status_msg

membuffer http_message_t::status_msg

response only.

Referenced by print_http_headers().

## uri

uri_type http_message_t::uri

request only.

Referenced by gena_process_subscription_renewal_request(), gena_process_subscription_request(), gena_process_unsubscribe_request(), get_dev_service(), print_http_headers(), process_request(), and valid_ssdp_msg().

## urlbuf

char* http_message_t::urlbuf

storage for url string.

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

- /build/pupnp-fsDV9p/pupnp-1.14.25/upnp/src/inc/httpparser.h