Searched refs:extension_len (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/tests/net/lib/http_server/common/src/ |
D | main.c | 369 if (strncmp(ct->extension, "html", ct->extension_len) == 0) { in ZTEST() 371 } else if (strncmp(ct->extension, "css", ct->extension_len) == 0) { in ZTEST() 373 } else if (strncmp(ct->extension, "js", ct->extension_len) == 0) { in ZTEST() 375 } else if (strncmp(ct->extension, "jpg", ct->extension_len) == 0) { in ZTEST() 377 } else if (strncmp(ct->extension, "png", ct->extension_len) == 0) { in ZTEST() 379 } else if (strncmp(ct->extension, "svg", ct->extension_len) == 0) { in ZTEST() 381 } else if (strncmp(ct->extension, "mpg", ct->extension_len) == 0) { in ZTEST()
|
/Zephyr-latest/include/zephyr/net/http/ |
D | server.h | 148 size_t extension_len; member 155 .extension_len = sizeof(STRINGIFY(_extension)) - 1, \
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_core.c | 781 if (url_len <= ct->extension_len) { in http_server_get_content_type_from_extension() 785 ext = &url[url_len - ct->extension_len]; in http_server_get_content_type_from_extension() 787 if (strncmp(ext, ct->extension, ct->extension_len) == 0) { in http_server_get_content_type_from_extension()
|