iPXE
Data Fields
http_state Struct Reference

HTTP transaction state. More...

#include <http.h>

Data Fields

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

Detailed Description

HTTP transaction state.

Definition at line 391 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 397 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 404 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 411 of file http.h.

Referenced by http_conn_close().


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