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

29 lines
359 B
Rust

#![feature(plugin)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[get("/")]
fn get() { }
#[put("/")]
fn put() { }
#[post("/")]
fn post() { }
#[delete("/")]
fn delete() { }
#[head("/")]
fn head() { }
#[patch("/")]
fn patch() { }
// TODO: Allow this once Diesel incompatibility is fixed.
// #[options("/")]
// fn options() { }
fn main() { }