Skip to content

Commit 36b212e

Browse files
author
Apu Islam
committed
feat(status): add HTTP 103 early hints status code
Add support for HTTP 103 Early Hints status code as defined in RFC 8297. This allows servers to send preliminary response headers before the final response, improving performance for resource loading optimization. The status code is added to the existing status_codes! macro with proper documentation referencing RFC 8297 Section 2.
1 parent e7a7337 commit 36b212e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/status.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ status_codes! {
333333
/// 102 Processing
334334
/// [[RFC2518, Section 10.1](https://datatracker.ietf.org/doc/html/rfc2518#section-10.1)]
335335
(102, PROCESSING, "Processing");
336+
/// 103 Early Hints
337+
/// [[RFC8297, Section 2](https://datatracker.ietf.org/doc/html/rfc8297#section-2)]
338+
(103, EARLY_HINTS, "Early Hints");
336339

337340
/// 200 OK
338341
/// [[RFC9110, Section 15.3.1](https://datatracker.ietf.org/doc/html/rfc9110#section-15.3.1)]

0 commit comments

Comments
 (0)