Rocket/codegen/tests/run-pass/methods.rs

28 lines
562 B
Rust
Raw Normal View History

#![feature(plugin)]
#![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() { }
fn main() { }