zephyr/subsys/net/lib/http
Robert Lubos 8f983ccda5 net: lib: http_client: Fix end of message detection
HTTP 1.1 server has two ways of indicating the message body length -
either by providing the Content Length header, or by closing the
connection when the entire body has been transmitted.

The second method didn't work with Zephyr's HTTP client implementation,
as EOF on a socket was treated as an error condition. Therefore, if no
Content Length was provided by the server, such transfers would always
end up with ECONNRESET error.

In order to fix this, we need to notify the parser about the EOF on a
socket when connection is closed. It is the parser role to determine
whether the EOF was expected in current state (by marking end of message
flag) or not (by setting an error).

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2025-07-07 10:04:17 -05:00
..
headers net: http: Add compression support in HTTP server 2025-03-07 20:19:44 +01:00
CMakeLists.txt net: http: Add compression support in HTTP server 2025-03-07 20:19:44 +01:00
http_client.c net: lib: http_client: Fix end of message detection 2025-07-07 10:04:17 -05:00
http_compression.c net: http: Add compression support in HTTP server 2025-03-07 20:19:44 +01:00
http_hpack.c
http_huffman.c
http_parser_url.c
http_parser.c net: lib: http: remove offensive language 2025-06-22 18:45:42 -07:00
http_server_core.c net: lib: http_server: implement concurrent 2025-04-09 17:32:50 +02:00
http_server_http1.c net: http: server: Avoid compiler warnings for zero-length-arrays 2025-03-28 16:11:27 +01:00
http_server_http2.c net: http_server: Avoid directly accessing address of unaligned struct 2025-07-01 10:15:55 -05:00
http_server_ws.c
iterables_content_type.ld
iterables_header_capture.ld
Kconfig net: lib: http: Select required symbols for server 2025-06-11 16:21:36 -07:00
README_http_parser