iPXE
http_state Struct Reference

HTTP transaction state. More...

#include <http.h>

Data Fields

int(* tx )(struct http_transaction *http)
 Transmit data.
int(* rx )(struct http_transaction *http, struct io_buffer **iobuf)
 Receive data.
void(* close )(struct http_transaction *http, int rc)
 Server connection closed.

Detailed Description

HTTP transaction state.

Definition at line 392 of file http.h.

Field Documentation

◆ tx

int(* http_state::tx) (struct http_transaction *http)

Transmit data.

Parameters
httpHTTP transaction
Return values
rcReturn status code

Definition at line 398 of file http.h.

Referenced by http_step().

◆ rx

int(* http_state::rx) (struct http_transaction *http, struct io_buffer **iobuf)

Receive data.

Parameters
httpHTTP transaction
iobufI/O buffer (may be claimed)
Return values
rcReturn status code

Definition at line 405 of file http.h.

Referenced by http_conn_deliver().

◆ close

void(* http_state::close) (struct http_transaction *http, int rc)

Server connection closed.

Parameters
httpHTTP transaction
rcReason for close

Definition at line 412 of file http.h.

Referenced by http_conn_close().


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