Tilde Friends
|
#include <http.h>
Public Attributes | |
tf_http_t * | http |
tf_http_connection_t * | connection |
bool | is_tls |
const char * | method |
const char * | path |
const char * | query |
void * | body |
size_t | content_length |
struct phr_header * | headers |
int | headers_count |
tf_http_message_callback * | on_message |
tf_http_close_callback * | on_close |
void * | context |
void * | user_data |
int | ref_count |
An HTTP request.
void* _tf_http_request_t::body |
The HTTP request body.
tf_http_connection_t* _tf_http_request_t::connection |
The HTTP connection associated with this request.
size_t _tf_http_request_t::content_length |
The length of the HTTP request body.
void* _tf_http_request_t::context |
Extra storage for user data.
struct phr_header* _tf_http_request_t::headers |
Header storage. Can also be accessed with tf_http_request_get_header().
int _tf_http_request_t::headers_count |
The number of headers stored.
tf_http_t* _tf_http_request_t::http |
The HTTP instance this request belongs to.
bool _tf_http_request_t::is_tls |
True if this is an HTTPS session.
const char* _tf_http_request_t::method |
The HTTP method of the request (GET/POST/...).
tf_http_close_callback* _tf_http_request_t::on_close |
A callback to be called when the connection is closed.
tf_http_message_callback* _tf_http_request_t::on_message |
A callback to be called when receiving a websocket message.
const char* _tf_http_request_t::path |
The HTTP request path.
const char* _tf_http_request_t::query |
The raw HTTP query string.
int _tf_http_request_t::ref_count |
The number of times tf_http_request_ref() has been called without tf_http_request_unref().
void* _tf_http_request_t::user_data |
User data available to callbacks.