Rocket/codegen/tests/methods.rs

29 lines
582 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro)]
#![plugin(rocket_codegen)]
extern crate rocket;
2016-12-30 07:46:47 +00:00
#[get("/")] fn get() { }
#[route(GET, "/")] fn get_r() { }
2016-12-30 07:46:47 +00:00
#[put("/")] fn put() { }
#[route(PUT, "/")] fn put_r() { }
2016-12-30 07:46:47 +00:00
#[post("/")] fn post() { }
#[route(POST, "/")] fn post_r() { }
2016-12-30 07:46:47 +00:00
#[delete("/")] fn delete() { }
#[route(DELETE, "/")] fn delete_r() { }
2016-12-30 07:46:47 +00:00
#[head("/")] fn head() { }
#[route(HEAD, "/")] fn head_r() { }
2016-12-30 07:46:47 +00:00
#[patch("/")] fn patch() { }
#[route(PATCH, "/")] fn patch_r() { }
2017-02-02 23:02:32 +00:00
#[options("/")] fn options() { }
2016-12-30 07:46:47 +00:00
#[route(OPTIONS, "/")] fn options_r() { }
2017-09-10 08:19:38 +00:00
#[test]
fn main() { }