KLone APIs | Modules | Data Structures | 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)
int response_set_status (response_t *rs, int code)
int response_get_status (response_t *rs)
void response_set_method (response_t *rs, int method)
int response_get_method (response_t *rs)
int response_enable_caching (response_t *rs)
int response_disable_caching (response_t *rs)
void response_set_cgi (response_t *rs, int cgi)
int response_print_header (response_t *rs)
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)
header_tresponse_get_header (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)
int response_set_field (response_t *rs, const char *name, const char *value)
int response_set_content_type (response_t *rs, const char *mime_type)
int response_set_content_length (response_t *rs, size_t sz)
int response_set_content_encoding (response_t *rs, const char *encoding)
int response_set_last_modified (response_t *rs, time_t mtime)
int response_set_date (response_t *rs, time_t now)
int response_set_cookie (response_t *rs, const char *name, const char *value, time_t expire, const char *path, const char *domain, int secure)

Detailed Description

Definition in file response.h.


Typedef Documentation

typedef struct response_s response_t
 

Definition at line 27 of file response.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
COOKIE_MAX_SIZE 

Definition at line 24 of file response.h.


Function Documentation

int response_bind response_t rs,
io_t
 

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.