HTP
0.3
|
#include "htp.h"
Functions | |
htp_tx_t * | htp_tx_create (htp_cfg_t *cfg, int is_cfg_shared, htp_conn_t *conn) |
void | htp_tx_destroy (htp_tx_t *tx) |
void * | htp_tx_get_user_data (htp_tx_t *tx) |
void | htp_tx_set_config (htp_tx_t *tx, htp_cfg_t *cfg, int is_cfg_shared) |
void | htp_tx_set_user_data (htp_tx_t *tx, void *user_data) |
void | htp_tx_register_request_body_data (htp_tx_t *tx, int(*callback_fn)(htp_tx_data_t *)) |
void | htp_tx_register_response_body_data (htp_tx_t *tx, int(*callback_fn)(htp_tx_data_t *)) |
htp_tx_t* htp_tx_create | ( | htp_cfg_t * | cfg, |
int | is_cfg_shared, | ||
htp_conn_t * | conn | ||
) |
Creates a new transaction structure.
cfg | |
is_cfg_shared | |
conn |
void htp_tx_destroy | ( | htp_tx_t * | tx | ) |
Destroys the supplied transaction.
tx |
void* htp_tx_get_user_data | ( | htp_tx_t * | tx | ) |
Returns the user data associated with this transaction.
tx |
void htp_tx_register_request_body_data | ( | htp_tx_t * | tx, |
int(*)(htp_tx_data_t *) | callback_fn | ||
) |
Register callback for the transaction-specific REQUEST_BODY_DATA hook.
tx | callback_fn |
void htp_tx_register_response_body_data | ( | htp_tx_t * | tx, |
int(*)(htp_tx_data_t *) | callback_fn | ||
) |
Register callback for the transaction-specific RESPONSE_BODY_DATA hook.
tx | callback_fn |
void htp_tx_set_config | ( | htp_tx_t * | tx, |
htp_cfg_t * | cfg, | ||
int | is_cfg_shared | ||
) |
Sets the configuration that is to be used for this transaction.
tx | |
cfg | |
is_cfg_shared |
void htp_tx_set_user_data | ( | htp_tx_t * | tx, |
void * | user_data | ||
) |
Associates user data with this transaction.
tx | |
user_data |