Rocket/core/lib
Sergio Benitez b34085392d Add 'Method' variants for all registered methods.
This commit allow routes to be declared for methods outside of the
standard HTTP method set. Specifically, it enables declaring routes for
any method in the IANA Method Registry:

```rust
#[route(LINK, uri = "/<foo>")]
fn link() { ... }

#[route("VERSION-CONTROL", uri = "/<foo>")]
fn version_control() { ... }
```

The `Method` type has gained variants for each registered method.

Breaking changes:

  - `Method::from_str()` no longer parses mixed-case method names.
  - `Method` is marked as non-exhaustive.
  - `Method::supports_payload()` removed in favor of
    `Method::allows_request_body()`.

Resolves #232.
2024-04-24 19:22:03 -07:00
..
fuzz Doc, fix, and test 'cli_colors' deserialization. 2023-12-18 16:37:56 -08:00
src Add 'Method' variants for all registered methods. 2024-04-24 19:22:03 -07:00
tests Add 'Method' variants for all registered methods. 2024-04-24 19:22:03 -07:00
Cargo.toml Introduce dynamic TLS resolvers. 2024-04-16 23:50:28 -07:00
LICENSE-APACHE Symlink license files in all crate directories. 2024-04-06 20:46:07 -07:00
LICENSE-MIT Symlink license files in all crate directories. 2024-04-06 20:46:07 -07:00
build.rs Fix min dependency versions. Update MSRV to 1.64. 2023-12-13 17:49:05 -08:00