|
libfetch 0.0.0
A lightweight asynchronous HTTP/1.1 client library implementing a subset of the WHATWG Fetch API.
|
Validate cookie names and values. More...
Functions | |
| bool | cookie_is_valid_name (const char *name) |
| Check if cookie name is valid. | |
| bool | cookie_is_valid_value (const char *value) |
| Check if cookie value is valid. | |
Validate cookie names and values.
| bool cookie_is_valid_name | ( | const char * | name | ) |
Check if cookie name is valid.
| name | Cookie name to validate |
Cookie names cannot contain control characters or certain special characters.
| bool cookie_is_valid_value | ( | const char * | value | ) |
Check if cookie value is valid.
| value | Cookie value to validate |
Cookie values cannot contain control characters, quotes, or semicolons.