Rocket/codegen/tests/custom-content-type.rs

11 lines
200 B
Rust
Raw Normal View History

#![feature(plugin, decl_macro, custom_derive)]
#![plugin(rocket_codegen)]
extern crate rocket;
#[post("/", format = "application/x-custom")]
fn get() -> &'static str { "hi" }
2017-09-10 08:19:38 +00:00
#[test]
fn main() { }