![]() |
BSB Developer Docs
|
Utility functions for dealing with HTTP method strings. More...
#include <stdbool.h>Go to the source code of this file.
Functions | |
| bool | http_method_is_valid (const char *method_str) |
| Check whether the HTTP method string is valid. | |
| void | http_method_normalize (char *method_str) |
| Normalize the method string in-place. | |
Utility functions for dealing with HTTP method strings.
| bool http_method_is_valid | ( | const char * | method_str | ) |
Check whether the HTTP method string is valid.
| [in] | method_str | Pointer to the zero-terminated method string |
true if the method string is valid, false otherwise | void http_method_normalize | ( | char * | method_str | ) |
Normalize the method string in-place.
Normalization is performed according to https://fetch.spec.whatwg.org/#concept-method-normalize
| [in,out] | method_str | Pointer to the zero-terminated method string |