|
glitchedhttps
|
HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc2VzYW1l"). More...


Go to the source code of this file.
Classes | |
| struct | glitchedhttps_header |
| HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc2VzYW1l"). More... | |
Functions | |
| GLITCHEDHTTPS_API struct glitchedhttps_header * | glitchedhttps_header_init (const char *type, size_t type_length, const char *value, size_t value_length) |
| GLITCHEDHTTPS_API void | glitchedhttps_header_free (struct glitchedhttps_header *header) |
HTTP request (or response) header (for example: type="Authorization" ; value="Basic YWxhZGRpbjpvcGVuc2VzYW1l").
| GLITCHEDHTTPS_API void glitchedhttps_header_free | ( | struct glitchedhttps_header * | header | ) |
Frees a glitchedhttps_header instance as well as its two heap-allocated strings inside.
| header | The glitchedhttps_header to deallocate. |
| GLITCHEDHTTPS_API struct glitchedhttps_header * glitchedhttps_header_init | ( | const char * | type, |
| size_t | type_length, | ||
| const char * | value, | ||
| size_t | value_length | ||
| ) |
Creates and initializes a glitchedhttps_header instance and returns its pointer.
| type | The header type name (e.g. "Authorization", "Accept", etc...). Must be a NUL-terminated string! |
| type_length | The length of the header type string. |
| value | The header value (NUL-terminated string). |
| value_length | The length of the header value string. |
NULL is returned!