= Mudpie
:app: Mudpie
== Overview
{app} is a simple multi-threaded HTTP application server for the amazingly awesome Rust language. It is inspired by python's lean and elegant WSGI protocol.
{app} is written in 100% safe Rust code (no unsafe blocks) and has no dependencies. It is intended to be reliable and easy to audit for security, especially for embedded applications.
NOTE: The {app} master
branch is for Rust nightly.
== Try it out
Use +cargo run+ to start the included demo server, which displays some example pages you can visit at +http://localhost:8000/+.
== Example Code
extern crate mudpie; use mudpie::{WebServer, WebRequest, WebResponse};
fn hello(req: &WebRequest) -> WebResponse { let page = "
fn main() { let mut svr = WebServer::new(); svr.add_path("get", "/hello", hello); svr.run("127.0.0.1", 8000);
== More Information
The link:src/bin/demo.rs[Demo Program] shows example usage
The link:http://www.rust-ci.org/kjpgit/mudpie/doc/mudpie/[Mudpie Crate API Docs]
The link:Manual.adoc[Manual] has gory architecture and protocol details
== License
Public Domain.