c-icap-doc
0.1
|
API for implementing ICAP clients
More...
Functions | |
int | ci_client_icapfilter_nonblocking (ci_request_t *req, int io_action, ci_headers_list_t *req_headers, ci_headers_list_t *resp_headers, void *data_source, int(*source_read)(void *, char *, int), void *data_dest, int(*dest_write)(void *, char *, int)) |
Function to send HTTP objects to an ICAP server for processing. More... | |
API for implementing ICAP clients
int ci_client_icapfilter_nonblocking | ( | ci_request_t * | req, |
int | io_action, | ||
ci_headers_list_t * | req_headers, | ||
ci_headers_list_t * | resp_headers, | ||
void * | data_source, | ||
int(*)(void *, char *, int) | source_read, | ||
void * | data_dest, | ||
int(*)(void *, char *, int) | dest_write | ||
) |
Function to send HTTP objects to an ICAP server for processing.
It sends the HTTP request headers, and the HTTP response from HTTP server (headers plus body data), and receives modified HTTP response headers and body data.
req | The ci_request_t object. |
io_action | is a combination set of ci_wait_for_read and ci_wait_for_write flags. It has the meaning that the ci_client_icapfilter_nonblocking can read from or write to ICAP server. |
req_headers | The HTTP request headers to use. |
resp_headers | The HTTP response headers to use. |
data_source | User data to use with source_read callback function. |
source_read | Callback function to use for reading HTTP object body data. |
data_dest | User data to use with dest_write callback function. |
dest_write | Callback function to use for storing modified body data. |