Skip to content

Instantly share code, notes, and snippets.

View seanmonstar's full-sized avatar

Sean McArthur seanmonstar

View GitHub Profile
@seanmonstar
seanmonstar / server.rs
Last active February 22, 2017 17:58 — forked from GuillaumeGomez/server
#![deny(missing_docs)]
#![deny(warnings)]
//! A simple HTTP server based on a REST API.
//!
//! You can perform the following actions:
//!
//! * `GET: /[key]`: returns the value corresponding to [key].
//! * `POST: /[key]`: create a new entry or update it with the given value passed in the body.
//! * `DELETE: /[key]`: remove the corresponding [key] from the server.