Go to the source code of this file.
Functions | |
int | response_redirect (response_t *rs, const char *url) |
Redirect to a given url. | |
int | response_set_status (response_t *rs, int code) |
Set the status of a response. | |
int | response_get_status (response_t *rs) |
Get the status of a response. | |
void | response_set_method (response_t *rs, int method) |
Set the response method. | |
int | response_get_method (response_t *rs) |
Get the response method. | |
int | response_enable_caching (response_t *rs) |
Remove all headers that inhibit page caching. | |
int | response_disable_caching (response_t *rs) |
Add all header field that enable page caching (i.e. disable caching). | |
int | response_print_header (response_t *rs) |
Print a response header. | |
io_t * | response_io (response_t *rs) |
Get the I/O object of a response. | |
header_t * | response_get_header (response_t *rs) |
Get the header of a response. | |
int | response_set_field (response_t *rs, const char *name, const char *value) |
Set 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_content_length (response_t *rs, size_t sz) |
Set the content length field of a response header. | |
int | response_set_content_encoding (response_t *rs, const char *encoding) |
Set response content encoding field. | |
int | response_set_last_modified (response_t *rs, time_t mtime) |
Set the last modified field in a response header. | |
int | response_set_date (response_t *rs, time_t now) |
Set the date field in a response header. | |
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. |
Definition in file response.h.