Functions | |
| int | field_set (field_t *, const char *name, const char *value) |
| Set a field. | |
| int | field_set_from_line (field_t *, const char *line) |
| Set a field from a line. | |
| const char * | field_get_name (field_t *f) |
| Get the name of a field. | |
| const char * | field_get_value (field_t *f) |
| Get the value of a field. | |
| int | field_create (const char *name, const char *value, field_t **pf) |
| Create a field. | |
| int | field_free (field_t *f) |
| Free a field. | |
| int | header_set_field (header_t *h, const char *name, const char *value) |
| Set the value of a field in a header. | |
| int | header_clear (header_t *h) |
| Clear a header. | |
| size_t | header_field_count (header_t *h) |
| Count fields in a header. | |
| field_t * | header_get_fieldn (header_t *h, size_t idx) |
| Get ith field in a header. | |
| field_t * | header_get_field (header_t *h, const char *name) |
| Get a field given a name. | |
| const char * | header_get_field_value (header_t *h, const char *name) |
| Get field value. | |
| int | header_del_field (header_t *h, field_t *f) |
| Delete a field from a header. | |
| int | header_add_field (header_t *h, field_t *f) |
| Add a field to a header. | |
|
||||||||||||||||
|
Set field
Definition at line 34 of file field.c. References field_s::name, and field_s::value. Referenced by field_set_from_line(), and header_set_field(). |
|
||||||||||||
|
Set the name and value of field
Definition at line 74 of file field.c. References field_set(). |
|
|
Return the string value of field
Definition at line 112 of file field.c. References field_s::name. |
|
|
Return the string value of field
Definition at line 129 of file field.c. References field_s::value. Referenced by header_get_field_value(). |
|
||||||||||||||||
|
Create a field from
Definition at line 148 of file field.c. References field_free(), field_s::name, and field_s::value. Referenced by header_set_field(), response_redirect(), and response_set_cookie(). |
|
|
Free field
Definition at line 183 of file field.c. References field_s::name, and field_s::value. Referenced by field_create(), header_clear(), header_set_field(), response_del_field(), and response_set_cookie(). |
|
||||||||||||||||
|
Set the value of field
Definition at line 29 of file header.c. References field_create(), field_free(), 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(). |
|
|
Clear all items in header
Definition at line 62 of file header.c. References field_free(), header_t::fields, and header_del_field(). |
|
|
Return the number of fields in header
Definition at line 88 of file header.c. References header_t::nfields. |
|
||||||||||||
|
Return the
Definition at line 106 of file header.c. References header_t::fields, and header_t::nfields. |
|
||||||||||||
|
Return the first matching
Definition at line 138 of file header.c. References header_t::fields, and field_s::name. Referenced by header_get_field_value(), header_set_field(), request_get_field(), and response_del_field(). |
|
||||||||||||
|
Return a string representation of the field with name
Definition at line 166 of file header.c. References field_get_value(), and header_get_field(). Referenced by request_get_field_value(). |
|
||||||||||||
|
Delete the supplied field
Definition at line 189 of file header.c. References header_t::fields, and header_t::nfields. Referenced by header_clear(), and response_del_field(). |
|
||||||||||||
|
Add a field
Definition at line 211 of file header.c. References header_t::fields, and header_t::nfields. Referenced by header_set_field(), response_redirect(), and response_set_cookie(). |