libonion
|
Data Structures | |
struct | onion_http_t |
Functions | |
onion_listen_point * | onion_http_t::onion_http_new () |
Creates an HTTP listen point. | |
static ssize_t | onion_http_t::onion_http_read (onion_request *con, char *data, size_t len) |
Reads data from the http connection. | |
int | onion_http_t::onion_http_read_ready (onion_request *con) |
HTTP client has data ready to be readen. | |
ssize_t | onion_http_t::onion_http_write (onion_request *con, const char *data, size_t len) |
Write dat to the HTTP client. |
onion_listen_point * onion_http_new | ( | ) |
Creates an HTTP listen point.
References onion_listen_point_t::close, onion_http_t::onion_http_read(), onion_http_t::onion_http_read_ready(), onion_http_t::onion_http_write(), onion_listen_point_t::onion_listen_point_new(), onion_listen_point_t::onion_listen_point_request_close_socket(), onion_listen_point_t::read, onion_listen_point_t::read_ready, onion_listen_point_t::secure, and onion_listen_point_t::write.
Referenced by onion_listen(), onion_set_hostname(), and onion_set_port().
static ssize_t onion_http_read | ( | onion_request * | con, |
char * | data, | ||
size_t | len | ||
) |
Reads data from the http connection.
References onion_request_t::connection, and onion_request_t::fd.
Referenced by onion_http_t::onion_http_new().
int onion_http_read_ready | ( | onion_request * | con | ) |
HTTP client has data ready to be readen.
References onion_request_t::connection, onion_request_t::listen_point, OCS_CLOSE_CONNECTION, OCS_NEED_MORE_DATA, OCS_PROCESSED, OCS_REQUEST_READY, onion_request_process(), onion_request_write(), and onion_listen_point_t::read.
Referenced by onion_http_t::onion_http_new(), and onion_https_t::onion_https_new().
ssize_t onion_http_write | ( | onion_request * | con, |
const char * | data, | ||
size_t | len | ||
) |
Write dat to the HTTP client.
References onion_request_t::connection, and onion_request_t::fd.
Referenced by onion_http_t::onion_http_new(), onion_set_certificate_va(), and onion_shortcut_response_file().