Skip to content

Instantly share code, notes, and snippets.

@cristianoliveira
Last active March 23, 2016 14:00
Show Gist options
  • Save cristianoliveira/584c50ff0ccd40e7aaff to your computer and use it in GitHub Desktop.
Save cristianoliveira/584c50ff0ccd40e7aaff to your computer and use it in GitHub Desktop.
iron_in_10lines.rs
extern crate iron;
use iron::prelude::*;
use iron::status;
fn main() {
Iron::new(|_: &mut Request| {
Ok(Response::with((status::Ok, "É bom esse iron!")))
}).http("localhost:3000").unwrap();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment