2017-09-22 01:01:56 +00:00
|
|
|
error: 'FIX' is not a valid method
|
|
|
|
--> $DIR/route-bad-method.rs:6:9
|
|
|
|
|
|
|
|
|
6 | #[route(FIX, "/hello")]
|
|
|
|
| ^^^
|
|
|
|
|
|
2017-12-26 18:10:55 +00:00
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
2017-09-22 01:01:56 +00:00
|
|
|
|
|
|
|
error: expected a valid HTTP method identifier
|
|
|
|
--> $DIR/route-bad-method.rs:9:9
|
|
|
|
|
|
|
|
|
9 | #[route("hi", "/hello")]
|
|
|
|
| ^^^^
|
|
|
|
|
|
2017-12-26 18:10:55 +00:00
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
2017-09-22 01:01:56 +00:00
|
|
|
|
|
|
|
error: expected a valid HTTP method identifier
|
|
|
|
--> $DIR/route-bad-method.rs:12:9
|
|
|
|
|
|
|
|
|
12 | #[route("GET", "/hello")]
|
|
|
|
| ^^^^^
|
|
|
|
|
|
2017-12-26 18:10:55 +00:00
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
2017-09-22 01:01:56 +00:00
|
|
|
|
|
|
|
error: expected a valid HTTP method identifier
|
|
|
|
--> $DIR/route-bad-method.rs:15:9
|
|
|
|
|
|
|
|
|
15 | #[route(120, "/hello")]
|
|
|
|
| ^^^
|
|
|
|
|
|
2017-12-26 18:10:55 +00:00
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
2017-09-22 01:01:56 +00:00
|
|
|
|
|
|
|
error: 'CONNECT' is not a valid method
|
|
|
|
--> $DIR/route-bad-method.rs:18:9
|
|
|
|
|
|
|
|
|
18 | #[route(CONNECT, "/hello")]
|
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-12-26 18:10:55 +00:00
|
|
|
= help: valid methods are: `GET`, `PUT`, `POST`, `DELETE`, `HEAD`, `PATCH`, `OPTIONS`
|
2017-09-22 01:01:56 +00:00
|
|
|
|
|
|
|
error: aborting due to 5 previous errors
|
|
|
|
|