mirror of https://github.com/fafhrd91/actix-web
As per RFC7230 section 3.3.2 <https://datatracker.ietf.org/doc/html/rfc7230#section-3.3.2>: > A server MAY send a Content-Length header field in a 304 (Not > Modified) response to a conditional GET request (Section 4.1 of > [RFC7232]); > a server MUST NOT send Content-Length in such a response > unless its field-value equals the decimal number of octets that would > have been sent in the payload body of a 200 (OK) response to the same > request. And per RFC7232 section 4.1 <https://datatracker.ietf.org/doc/html/rfc7232#section-4.1>: > A 304 response cannot contain a message-body; it is always terminated > by the first empty line after the header fields. Previously a `Content-Length: 0` header was sent because `.finish()` sets the body to `Body::Empty`, which indicates a zero-sized response. |
||
---|---|---|
.. | ||
src | ||
tests | ||
CHANGES.md | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
actix-files
Static file serving for Actix Web
Documentation & Resources
- API Documentation
- Example Project
- Chat on Gitter
- Minimum supported Rust version: 1.42 or later