Data Fields
http_request Struct Reference

An HTTP request. More...

#include <http.h>

Data Fields

struct http_methodmethod
const char * uri
 Request URI string.
const char * host
 Server host name.
struct http_request_range range
 Range descriptor.
struct http_request_content content
 Content descriptor.
struct http_request_auth auth
 Authentication descriptor.

Detailed Description

An HTTP request.

This represents a single request to be sent to a server, including the values required to construct all headers.

Pointers within this structure must point to storage which is guaranteed to remain valid for the lifetime of the containing HTTP transaction.

Definition at line 212 of file http.h.

Field Documentation


Definition at line 214 of file http.h.

Referenced by http_digest_authenticate(), http_format_headers(), http_open(), and http_rx_headers().

const char* http_request::uri

Request URI string.

Definition at line 216 of file http.h.

Referenced by http_digest_authenticate(), http_format_digest_auth(), http_format_headers(), and http_open().

const char* http_request::host

Server host name.

Definition at line 218 of file http.h.

Referenced by http_format_host(), http_format_metadata_flavor(), and http_open().

Range descriptor.

Definition at line 220 of file http.h.

Referenced by http_format_p2p_peerdist(), http_format_range(), and http_open().

Content descriptor.

Definition at line 222 of file http.h.

Referenced by http_format_content_length(), http_format_content_type(), http_open(), and http_tx_request().

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