4#include <esp_http_server.h>
16optional<std::string>
query_key_value(
const char *query_url,
size_t query_len,
const char *key);
17bool query_has_key(
const char *query_url,
size_t query_len,
const char *key);
20inline bool char_equals_ci(
char a,
char b) { return ::tolower(a) == ::tolower(b); }
23bool str_ncmp_ci(
const char *s1,
const char *s2,
size_t n);
26const char *
strcasestr_n(
const char *haystack,
size_t haystack_len,
const char *needle);
bool query_has_key(const char *query_url, size_t query_len, const char *key)
bool char_equals_ci(char a, char b)
optional< std::string > request_get_header(httpd_req_t *req, const char *name)
optional< std::string > query_key_value(const char *query_url, size_t query_len, const char *key)
const char * strcasestr_n(const char *haystack, size_t haystack_len, const char *needle)
bool str_ncmp_ci(const char *s1, const char *s2, size_t n)
size_t url_decode(char *str)
Decode URL-encoded string in-place (e.g., %20 -> space, + -> space) Returns the new length of the dec...
bool request_has_header(httpd_req_t *req, const char *name)