mongoose/docs/c-api/http_server.h/mg_get_http_basic_auth.md
Marko Mikulicic 1889e12b54 Support username:pass authority in HTTP/WS urls
PUBLISHED_FROM=39a1c2a271c5cd961670e11c830105c17ba0b2e4
2016-11-10 11:21:43 +00:00

419 B

title decl_name symbol_kind signature
mg_get_http_basic_auth() mg_get_http_basic_auth func int mg_get_http_basic_auth(struct http_message *hm, char *user, size_t user_len, char *pass, size_t pass_len);

Gets and parses the Authorization: Basic header Returns -1 if no Authorization header is found, or if mg_parse_http_basic_auth fails parsing the resulting header.