zephyr/subsys/net/lib/http/CMakeLists.txt
Matt Rodgers 0c8bdbc45d net: lib: http_server: allow application to access request headers
Allow application to register certain HTTP request headers to be stored
by the server. These stored headers can then be accessed from a dynamic
resource callback.

Signed-off-by: Matt Rodgers <mrodgers@witekio.com>
2024-09-06 11:27:37 -04:00

31 lines
971 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_library()
if(CONFIG_HTTP_PARSER_STRICT)
zephyr_library_compile_definitions(HTTP_PARSER_STRICT)
endif()
zephyr_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
zephyr_library_sources_ifdef(CONFIG_HTTP_PARSER http_parser.c)
zephyr_library_sources_ifdef(CONFIG_HTTP_PARSER_URL http_parser_url.c)
zephyr_library_sources_ifdef(CONFIG_HTTP_CLIENT http_client.c)
zephyr_library_sources_ifdef(CONFIG_HTTP_SERVER http_server_core.c
http_server_http1.c
http_server_http2.c
http_hpack.c
http_huffman.c)
if(CONFIG_HTTP_SERVER AND CONFIG_WEBSOCKET)
zephyr_library_sources(http_server_ws.c)
zephyr_library_link_libraries_ifdef(CONFIG_MBEDTLS mbedTLS)
endif()
if(CONFIG_HTTP_SERVER AND CONFIG_FILE_SYSTEM)
zephyr_linker_sources(SECTIONS iterables_content_type.ld)
endif()
if(CONFIG_HTTP_SERVER AND CONFIG_HTTP_SERVER_CAPTURE_HEADERS)
zephyr_linker_sources(SECTIONS iterables_header_capture.ld)
endif()