Searched refs:content_type (Results 1 – 10 of 10) sorted by relevance
/Zephyr-latest/tests/net/lib/http_server/common/src/ |
D | main.c | 350 extern void http_server_get_content_type_from_extension(char *url, char *content_type, 397 char content_type[64] = "unknown"; in ZTEST() local 399 http_server_get_content_type_from_extension(mp3, content_type, sizeof(content_type)); in ZTEST() 400 zassert_str_equal(content_type, "unknown"); in ZTEST() 402 http_server_get_content_type_from_extension(html, content_type, sizeof(content_type)); in ZTEST() 403 zassert_str_equal(content_type, "text/html"); in ZTEST() 405 http_server_get_content_type_from_extension(mpg, content_type, sizeof(content_type)); in ZTEST() 406 zassert_str_equal(content_type, "video/mpeg"); in ZTEST()
|
/Zephyr-latest/include/zephyr/net/http/ |
D | server.h | 102 const char *content_type; member 149 const char *content_type; member 156 .content_type = _content_type, \ 445 unsigned char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN]; member
|
/Zephyr-latest/subsys/net/lib/http/ |
D | http_server_http1.c | 68 static_detail->common.content_type == NULL ? in handle_http1_static_resource() 69 "text/html" : static_detail->common.content_type, in handle_http1_static_resource() 75 static_detail->common.content_type == NULL ? in handle_http1_static_resource() 76 "text/html" : static_detail->common.content_type, in handle_http1_static_resource() 185 const char *content_type = NULL; in http1_send_headers() local 188 content_type = dynamic_detail->common.content_type; in http1_send_headers() 192 content_type == NULL ? "text/html" : content_type); in http1_send_headers() 401 char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN] = "text/html"; in handle_http1_static_fs_resource() local 423 http_server_get_content_type_from_extension(client->url_buffer, content_type, in handle_http1_static_fs_resource() 424 sizeof(content_type)); in handle_http1_static_fs_resource() [all …]
|
D | http_server_http2.c | 190 if (!content_type_sent && detail_common && detail_common->content_type != NULL) { in send_headers_frame() 192 detail_common->content_type); in send_headers_frame() 403 char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN] = "text/html"; in handle_http2_static_fs_resource() local 407 .content_type = content_type, in handle_http2_static_fs_resource() 430 http_server_get_content_type_from_extension(client->url_buffer, content_type, in handle_http2_static_fs_resource() 431 sizeof(content_type)); in handle_http2_static_fs_resource() 1299 if (header->value_len > sizeof(client->content_type) - 1) { in process_header() 1304 memcpy(client->content_type, header->value, header->value_len); in process_header() 1305 client->content_type[header->value_len] = '\0'; in process_header()
|
D | http_server_core.c | 773 void http_server_get_content_type_from_extension(char *url, char *content_type, in http_server_get_content_type_from_extension() argument 788 strncpy(content_type, ct->content_type, content_type_size); in http_server_get_content_type_from_extension()
|
/Zephyr-latest/samples/net/prometheus/src/ |
D | stats.c | 76 .content_type = "text/plain",
|
D | main.c | 80 .content_type = "text/plain",
|
/Zephyr-latest/subsys/net/lib/http/headers/ |
D | server_internal.h | 42 void http_server_get_content_type_from_extension(char *url, char *content_type,
|
/Zephyr-latest/samples/net/sockets/http_server/src/ |
D | main.c | 53 .content_type = "text/html", 64 .content_type = "text/javascript",
|
/Zephyr-latest/tests/net/lib/http_server/core/src/ |
D | main.c | 303 .content_type = "text/plain", 365 .content_type = "text/plain", 375 .content_type = "text/plain", 523 .content_type = "text/plain",
|