Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

response.c File Reference

Go to the source code of this file.

Functions

int response_set_content_encoding (response_t *rs, const char *encoding)
 Set response content encoding field.
int response_disable_caching (response_t *rs)
 Add all header field that enable page caching (i.e. disable caching).
int response_enable_caching (response_t *rs)
 Remove all headers that inhibit page caching.
int response_set_cookie (response_t *rs, const char *name, const char *value, time_t expire, const char *path, const char *domain, int secure)
 Set the value of a cookie.
void response_set_method (response_t *rs, int method)
 Set the response method.
int response_get_method (response_t *rs)
 Get the response method.
void response_set_cgi (response_t *rs, int cgi)
size_t response_get_max_header_size (response_t *rs)
int response_print_header_to_io (response_t *rs, io_t *io)
int response_print_header (response_t *rs)
 Print a response header.
int response_set_field (response_t *rs, const char *name, const char *value)
 Set an header field of a response object.
int response_del_field (response_t *rs, const char *name)
 Remove an header field of a response object.
int response_set_content_type (response_t *rs, const char *mime_type)
 Set the content type of a response to a mime type.
int response_set_date (response_t *rs, time_t date)
 Set the date field in a response header.
int response_set_last_modified (response_t *rs, time_t mtime)
 Set the last modified field in a response header.
int response_set_content_length (response_t *rs, size_t sz)
 Set the content length field of a response header.
int response_get_status (response_t *rs)
 Get the status of a response.
header_tresponse_get_header (response_t *rs)
 Get the header of a response.
io_tresponse_io (response_t *rs)
 Get the I/O object of a response.
int response_redirect (response_t *rs, const char *url)
 Redirect to a given url.
int response_set_status (response_t *rs, int status)
 Set the status of a response.
int response_bind (response_t *rs, io_t *out)
int response_create (http_t *http, response_t **prs)
int response_free (response_t *rs)


←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved