Home
last modified time | relevance | path

Searched refs:content_type (Results 1 – 10 of 10) sorted by relevance

/Zephyr-latest/tests/net/lib/http_server/common/src/
Dmain.c424 extern void http_server_get_content_type_from_extension(char *url, char *content_type,
471 char content_type[64] = "unknown"; in ZTEST() local
473 http_server_get_content_type_from_extension(mp3, content_type, sizeof(content_type)); in ZTEST()
474 zassert_str_equal(content_type, "unknown"); in ZTEST()
476 http_server_get_content_type_from_extension(html, content_type, sizeof(content_type)); in ZTEST()
477 zassert_str_equal(content_type, "text/html"); in ZTEST()
479 http_server_get_content_type_from_extension(mpg, content_type, sizeof(content_type)); in ZTEST()
480 zassert_str_equal(content_type, "video/mpeg"); in ZTEST()
/Zephyr-latest/include/zephyr/net/http/
Dserver.h102 const char *content_type; member
159 const char *content_type; member
166 .content_type = _content_type, \
459 unsigned char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN]; member
/Zephyr-latest/subsys/net/lib/http/
Dhttp_server_http1.c151 static_detail->common.content_type == NULL ? in handle_http1_static_resource()
152 "text/html" : static_detail->common.content_type, in handle_http1_static_resource()
158 static_detail->common.content_type == NULL ? in handle_http1_static_resource()
159 "text/html" : static_detail->common.content_type, in handle_http1_static_resource()
268 const char *content_type = NULL; in http1_send_headers() local
271 content_type = dynamic_detail->common.content_type; in http1_send_headers()
275 content_type == NULL ? "text/html" : content_type); in http1_send_headers()
498 char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN] = "text/html"; in handle_http1_static_fs_resource() local
511 http_server_get_content_type_from_extension(client->url_buffer, content_type, in handle_http1_static_fs_resource()
512 sizeof(content_type)); in handle_http1_static_fs_resource()
[all …]
Dhttp_server_http2.c191 if (!content_type_sent && detail_common && detail_common->content_type != NULL) { in send_headers_frame()
193 detail_common->content_type); in send_headers_frame()
461 char content_type[HTTP_SERVER_MAX_CONTENT_TYPE_LEN] = "text/html"; in handle_http2_static_fs_resource() local
465 .content_type = content_type, in handle_http2_static_fs_resource()
488 http_server_get_content_type_from_extension(client->url_buffer, content_type, in handle_http2_static_fs_resource()
489 sizeof(content_type)); in handle_http2_static_fs_resource()
1378 if (header->value_len > sizeof(client->content_type) - 1) { in process_header()
1383 memcpy(client->content_type, header->value, header->value_len); in process_header()
1384 client->content_type[header->value_len] = '\0'; in process_header()
Dhttp_server_core.c850 void http_server_get_content_type_from_extension(char *url, char *content_type, in http_server_get_content_type_from_extension() argument
865 strncpy(content_type, ct->content_type, content_type_size); in http_server_get_content_type_from_extension()
/Zephyr-latest/samples/net/prometheus/src/
Dstats.c76 .content_type = "text/plain",
Dmain.c80 .content_type = "text/plain",
/Zephyr-latest/subsys/net/lib/http/headers/
Dserver_internal.h51 void http_server_get_content_type_from_extension(char *url, char *content_type,
/Zephyr-latest/samples/net/sockets/http_server/src/
Dmain.c53 .content_type = "text/html",
64 .content_type = "text/javascript",
/Zephyr-latest/tests/net/lib/http_server/core/src/
Dmain.c315 .content_type = "text/plain",
377 .content_type = "text/plain",
387 .content_type = "text/plain",
535 .content_type = "text/plain",
2511 .content_type = "text/html",