Tutorial by Examples

This example sends a hard-coded response to the user when they send a server request. extern crate iron; use iron::prelude::*; use iron::status; // You can pass the handler as a function or a closure. In this // case, we've chosen a function for clarity. // Since we don't care about the re...
Add this dependency to the Cargo.toml file: [dependencies] iron = "0.4.0" Run cargo build and Cargo will download and install the specified version of Iron.
This example will provide basic web routing using Iron. To begin with, you will need to add the Iron dependency to your Cargo.toml file. [dependencies] iron = "0.4.*" We will use Iron's own Router library. For simplicity, the Iron project provides this library as part of the Iron cor...

Page 1 of 1