Clarify what handler::any and service::any accepts (#337)

They only accept standard HTTP methods and don't think we can fix that
without breaking changes.

Fixes https://github.com/tokio-rs/axum/issues/289
This commit is contained in:
David Pedersen
2021-09-19 08:28:15 +00:00
committed by GitHub
parent bb5bcab116
commit 2a683417d1
4 changed files with 27 additions and 6 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ bitflags! {
const OPTIONS = 0b000010000;
/// Match `PATCH` requests.
const PATCH = 0b000100000;
/// Match `POSt` requests.
/// Match `POST` requests.
const POST = 0b001000000;
/// Match `PUT` requests.
const PUT = 0b010000000;