Rocket/core/lib/src
Sergio Benitez 72c91958b7 Support routes that match any method.
This commit introduces support for method-less routes and route
attributes, which match _any_ valid method: `#[route("/")]`. The `Route`
structure's `method` field is now accordingly of type `Option<Route>`.

The syntax for the `route` attribute has changed in a breaking manner.
To set a method, a key/value of `method = NAME` must be introduced:

```rust
#[route("/", method = GET)]
```

If the method's name is a valid identifier, it can be used without
quotes. Otherwise it must be quoted:

```rust
// `GET` is a valid identifier, but `VERSION-CONTROL` is not
#[route("/", method = "VERSION-CONTROL")]
```

Closes #2731.
2024-08-24 03:00:52 -07:00
..
catcher Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
config Add 'RocketDynFmt' subscriber constructor. 2024-08-05 22:24:47 -07:00
data Remove old 'log' macros. Color via subscriber. 2024-06-03 14:39:12 -07:00
fairing Add fairing retrieval methods to 'Rocket'. 2024-08-21 16:42:09 -07:00
form Remove old 'log' macros. Color via subscriber. 2024-06-03 14:39:12 -07:00
fs Improve FileServer rewrite API. 2024-07-06 15:34:21 +02:00
http Clean up codebase: fix reasonable clippy warnings. 2024-03-20 00:47:38 -07:00
listener Update 'h3' and 's2n_quic' dependencies. 2024-08-16 16:12:12 -07:00
local Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
mtls Introduce dynamic TLS resolvers. 2024-04-16 23:50:28 -07:00
request Fix support for HTTP extension methods. 2024-08-17 04:25:49 -07:00
response Strip body and content-length on 204, body on 304. 2024-08-23 16:18:48 -07:00
route Support routes that match any method. 2024-08-24 03:00:52 -07:00
router Support routes that match any method. 2024-08-24 03:00:52 -07:00
serde Update docs to make sense 2024-08-10 13:02:41 -05:00
shield Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
shutdown Migrate to 'tracing' for logging. 2024-06-03 14:32:01 -07:00
tls Remove old 'log' macros. Color via subscriber. 2024-06-03 14:39:12 -07:00
trace Support routes that match any method. 2024-08-24 03:00:52 -07:00
util Migrate to 'tracing' for logging. 2024-06-03 14:32:01 -07:00
erased.rs Implement 'Trace' trait. Use structured logging. 2024-06-03 14:33:24 -07:00
error.rs Improve ignite fairing failure trace message. 2024-08-20 23:32:04 -07:00
lib.rs Improve 'Error' type: make 'ErrorKind' accessible. 2024-06-03 20:11:20 -07:00
lifecycle.rs Strip body and content-length on 204, body on 304. 2024-08-23 16:18:48 -07:00
outcome.rs Implement 'Trace' trait. Use structured logging. 2024-06-03 14:33:24 -07:00
phase.rs Support routes that match any method. 2024-08-24 03:00:52 -07:00
rocket.rs Support routes that match any method. 2024-08-24 03:00:52 -07:00
sentinel.rs Fix various docstring typos. 2024-08-17 19:37:19 -07:00
server.rs Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
state.rs Remove old 'log' macros. Color via subscriber. 2024-06-03 14:39:12 -07:00