Skip to content

Commit

Permalink
Update method character docomentation to RFC 9110
Browse files Browse the repository at this point in the history
  • Loading branch information
franfastly committed Aug 7, 2024
1 parent a7a91aa commit c46350d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ mod extension {
}
}

// From the HTTP spec section 5.1.1, the HTTP method is case-sensitive and can
// From the RFC 9110 HTTP Semantics, section 9.1, the HTTP method is case-sensitive and can
// contain the following characters:
//
// ```
Expand All @@ -366,7 +366,7 @@ mod extension {
// "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA
// ```
//
// https://www.w3.org/Protocols/HTTP/1.1/draft-ietf-http-v11-spec-01#Method
// https://datatracker.ietf.org/doc/html/rfc9110#section-9.1
//
// Note that this definition means that any &[u8] that consists solely of valid
// characters is also valid UTF-8 because the valid method characters are a
Expand Down

0 comments on commit c46350d

Please sign in to comment.