iPXE
Data Fields
http_request Struct Reference

An HTTP request. More...

#include <http.h>

Data Fields

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

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 210 of file http.h.

Field Documentation

◆ method

struct http_method* http_request::method

Method.

Definition at line 212 of file http.h.

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

◆ uri

const char* http_request::uri

Request URI string.

Definition at line 214 of file http.h.

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

◆ host

const char* http_request::host

Server host name.

Definition at line 216 of file http.h.

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

◆ range

struct http_request_range http_request::range

Range descriptor.

Definition at line 218 of file http.h.

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

◆ content

struct http_request_content http_request::content

Content descriptor.

Definition at line 220 of file http.h.

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

◆ auth

struct http_request_auth http_request::auth

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