response.c File Reference

Go to the source code of this file.

Functions

int response_set_content_encoding (response_t *rs, const char *encoding)
int response_disable_caching (response_t *rs)
int response_enable_caching (response_t *rs)
int response_set_cookie (response_t *rs, const char *name, const char *value, time_t expire, const char *path, const char *domain, int secure)
void response_set_method (response_t *rs, int method)
int response_get_method (response_t *rs)
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)
int response_set_field (response_t *rs, const char *name, const char *value)
int response_del_field (response_t *rs, const char *name)
int response_set_content_type (response_t *rs, const char *mime_type)
int response_set_date (response_t *rs, time_t date)
int response_set_last_modified (response_t *rs, time_t mtime)
int response_set_content_length (response_t *rs, size_t sz)
int response_get_status (response_t *rs)
header_tresponse_get_header (response_t *rs)
io_tresponse_io (response_t *rs)
int response_redirect (response_t *rs, const char *url)
int response_set_status (response_t *rs, int status)
int response_bind (response_t *rs, io_t *out)
int response_create (http_t *http, response_t **prs)
int response_free (response_t *rs)
field_tresponse_get_field (response_t *rs, const char *name)
const char * response_get_field_value (response_t *rs, const char *name)

Function Documentation

int response_bind ( response_t rs,
io_t out 
)

Definition at line 635 of file response.c.

int response_create ( http_t http,
response_t **  prs 
)

Definition at line 653 of file response.c.

int response_free ( response_t rs  ) 

Definition at line 684 of file response.c.

field_t* response_get_field ( response_t rs,
const char *  name 
)

Definition at line 700 of file response.c.

const char* response_get_field_value ( response_t rs,
const char *  name 
)

Definition at line 710 of file response.c.

size_t response_get_max_header_size ( response_t rs  ) 

Definition at line 289 of file response.c.

int response_print_header_to_io ( response_t rs,
io_t io 
)

Definition at line 329 of file response.c.

void response_set_cgi ( response_t rs,
int  cgi 
)

Definition at line 281 of file response.c.