6 * Hyper Text Transport Protocol
12 #include <gpxe/async.h>
14 /** HTTP default port */
32 /** TCP connection for this request */
33 struct tcp_connection tcp;
35 enum http_state state;
36 /** File to download */
38 /** Size of file downloading */
40 /** Number of bytes recieved so far */
44 * @v http HTTP request struct
45 * @v data Received data
46 * @v len Length of received data
48 * This function is called for all data received from the
51 void ( *callback ) ( struct http_request *http, char *data, size_t len );
52 /** Asynchronous operation */
53 struct async_operation aop;
56 extern struct async_operation * get_http ( struct http_request *http );
58 #endif /* _GPXE_HTTP_H */