Functions | |
const char * | header_get_field_value (header_t *h, const char *name) |
Get field value. | |
field_t * | header_get_field (header_t *h, const char *name) |
Get a field given a name. | |
field_t * | header_get_fieldn (header_t *h, size_t idx) |
Get ith field in a header. | |
size_t | header_field_count (header_t *h) |
Count fields in a header. | |
int | header_set_field (header_t *h, const char *name, const char *value) |
Set the value of a field in a header. | |
int | header_add_field (header_t *h, field_t *f) |
Add a field to a header. | |
int | header_del_field (header_t *h, field_t *f) |
Delete a field from a header. | |
int | header_clear (header_t *h) |
Clear a header. |
|
Return a string representation of the field with name
Definition at line 179 of file header.c. References field_get_value(), and header_get_field(). Referenced by request_get_field_value(), request_is_encoding_accepted(), and response_get_field_value(). |
|
Return the first matching
Definition at line 152 of file header.c. References fields, and field_s::name. Referenced by header_get_field_value(), header_set_field(), request_get_field(), and response_get_field(). |
|
Return the
|
|
Return the number of fields in header
Definition at line 104 of file header.c. References nfields. |
|
Set the value of field
Definition at line 47 of file header.c. References field_set(), header_add_field(), and header_get_field(). Referenced by response_set_content_encoding(), response_set_content_length(), response_set_content_type(), response_set_date(), response_set_field(), and response_set_last_modified(). |
|
Add a field
Definition at line 222 of file header.c. References fields, and nfields. Referenced by header_set_field(), response_redirect(), and response_set_cookie(). |
|
Delete the supplied field
Definition at line 201 of file header.c. References fields, and nfields. Referenced by header_clear(). |
|
Clear all items in header
Definition at line 79 of file header.c. References fields, and header_del_field(). |