iPXE
|
An HTTP response. More...
#include <http.h>
Data Fields | |
struct line_buffer | headers |
Raw response header lines. More... | |
unsigned int | status |
Status code. More... | |
int | rc |
Return status code. More... | |
const char * | location |
Redirection location. More... | |
struct http_response_transfer | transfer |
Transfer descriptor. More... | |
struct http_response_content | content |
Content descriptor. More... | |
struct http_response_auth | auth |
Authorization descriptor. More... | |
unsigned int | retry_after |
Retry delay (in seconds) More... | |
unsigned int | flags |
Flags. More... | |
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.
struct line_buffer http_response::headers |
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 327 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 332 of file http.h.
Referenced by http_parse_status().
int http_response::rc |
Return status code.
This is the iPXE return status code corresponding to the HTTP status code (e.g. -ENOENT).
Definition at line 338 of file http.h.
Referenced by http_content_buffer(), http_content_deliver(), http_parse_status(), and http_transfer_complete().
const char* http_response::location |
Redirection location.
Definition at line 340 of file http.h.
Referenced by http_parse_location(), and http_transfer_complete().
struct http_response_transfer http_response::transfer |
Transfer descriptor.
Definition at line 342 of file http.h.
Referenced by http_parse_transfer_encoding(), and http_rx_headers().
struct http_response_content http_response::content |
Content descriptor.
Definition at line 344 of file http.h.
Referenced by http_init_transfer_identity(), http_parse_content_encoding(), http_parse_content_length(), http_rx_headers(), and http_rx_transfer_identity().
struct http_response_auth http_response::auth |
Authorization descriptor.
Definition at line 346 of file http.h.
Referenced by http_digest_authenticate(), http_format_digest_auth(), http_format_ntlm_auth(), http_ntlm_authenticate(), http_parse_ntlm_auth(), http_parse_www_authenticate(), and http_transfer_complete().
unsigned int http_response::retry_after |
Retry delay (in seconds)
Definition at line 348 of file http.h.
Referenced by http_parse_retry_after(), and http_transfer_complete().
unsigned int http_response::flags |
Flags.
Definition at line 350 of file http.h.
Referenced by http_close_transfer_identity(), http_init_transfer_identity(), http_parse_basic_auth(), http_parse_connection(), http_parse_content_length(), http_parse_digest_auth(), http_parse_ntlm_auth(), http_parse_retry_after(), http_parse_status(), http_rx_transfer_identity(), and http_transfer_complete().