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

response.h File Reference

Go to the source code of this file.

Typedefs

typedef response_s response_t

Enumerations

enum  { COOKIE_MAX_SIZE = 4096 }

Functions

int response_create (http_t *http, response_t **prs)
int response_free (response_t *rs)
int response_bind (response_t *rs, io_t *)
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).
void response_set_cgi (response_t *rs, int cgi)
int response_print_header (response_t *rs)
 Print a response header.
int response_print_header_to_io (response_t *rs, io_t *io)
size_t response_get_max_header_size (response_t *rs)
io_tresponse_io (response_t *rs)
 Get the I/O object of a response.
header_tresponse_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.


Detailed Description

Definition in file response.h.


Typedef Documentation

typedef struct response_s response_t
 

Definition at line 27 of file response.h.

Referenced by broker_serve(), response_bind(), response_create(), response_del_field(), response_disable_caching(), response_enable_caching(), response_filter_create(), response_free(), response_get_header(), response_get_max_header_size(), response_get_method(), response_get_status(), response_io(), response_print_header(), response_print_header_to_io(), response_redirect(), response_set_cgi(), response_set_content_encoding(), response_set_content_length(), response_set_content_type(), response_set_cookie(), response_set_date(), response_set_field(), response_set_last_modified(), response_set_method(), response_set_status(), session_client_create(), session_create(), session_file_create(), session_mem_create(), and session_prv_init().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
COOKIE_MAX_SIZE 

Definition at line 24 of file response.h.


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