Takahiro Itazuri 7e2684d779 fix: Always set Content-Length field in non-100/204 responses
The client may wait for the server to close the connection or for
timeout to occur in some cases. This commit changes it to always set
Content-Length field in non-100/204 responses regardless of whether
the body is empty. Although it doesn't cover all the patterns where
the response must not set it, users can remove it by calling
`set_content_length(None)`.

Signed-off-by: Takahiro Itazuri <itazur@amazon.com>
2024-02-21 13:18:09 +00:00
2020-01-30 15:21:04 +02:00
2023-09-20 14:13:56 +01:00
2020-07-23 18:17:33 +03:00
2020-01-30 15:21:04 +02:00
2022-06-13 09:39:48 +03:00
2024-01-02 17:07:08 +00:00
2024-01-02 17:07:08 +00:00
2020-03-24 18:22:44 +02:00
2020-03-24 18:22:44 +02:00
2022-06-13 09:39:48 +03:00

micro-http

This is a minimal implementation of the HTTP/1.0 and HTTP/1.1 protocols. This HTTP implementation is stateless thus it does not support chunking or compression.

The micro-http implementation is used in production by Firecracker.

As micro-http uses std::os::unix this crates only supports Unix-like targets.

Contributing

To contribute to micro-http, checkout the contribution guidelines.

Releases

New micro-http versions are released via the GitHub repository releases page. A history of changes is recorded in our changelog.

Policy for Security Disclosures

If you suspect you have uncovered a vulnerability, contact us privately, as outlined in our security policy document; we will immediately prioritize your disclosure.

Description
No description provided
Readme Apache-2.0 331 KiB
Languages
Rust 100%