iPXE
Data Fields
http_response Struct Reference

An HTTP response. More...

#include <http.h>

Data Fields

struct line_buffer headers
 Raw response header lines.
unsigned int status
 Status code.
int rc
 Return status code.
const char * location
 Redirection location.
struct http_response_transfer transfer
 Transfer descriptor.
struct http_response_content content
 Content descriptor.
struct http_response_auth auth
 Authorization descriptor.
unsigned int retry_after
 Retry delay (in seconds)
unsigned int flags
 Flags.

Detailed Description

An HTTP response.

This represents a single response received from the server, including all values parsed from headers.

Pointers within this structure may point into the raw response buffer, and so should be invalidated when the response buffer is modified or discarded.

Definition at line 320 of file http.h.


Field Documentation

Raw response header lines.

This is the raw response data received from the server, up to and including the terminating empty line. String pointers within the response may point into this data buffer; NUL terminators will be added (overwriting the original terminating characters) as needed.

Definition at line 329 of file http.h.

Referenced by http_free(), http_parse_headers(), http_rx_headers(), and http_tx_request().

unsigned int http_response::status

Status code.

This is the raw HTTP numeric status code (e.g. 404).

Definition at line 334 of file http.h.

Referenced by http_parse_status().

Return status code.

This is the iPXE return status code corresponding to the HTTP status code (e.g. -ENOENT).

Definition at line 340 of file http.h.

Referenced by http_content_buffer(), http_content_deliver(), http_parse_status(), and http_transfer_complete().

Redirection location.

Definition at line 342 of file http.h.

Referenced by http_parse_location(), and http_transfer_complete().

Transfer descriptor.

Definition at line 344 of file http.h.

Referenced by http_parse_transfer_encoding(), and http_rx_headers().

Retry delay (in seconds)

Definition at line 350 of file http.h.

Referenced by http_parse_retry_after(), and http_transfer_complete().

unsigned int http_response::flags

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