Home

Awesome

kinglet

A modern asynchronous HTTP server for Rust.

Overview

Kinglet is based on rotor and mio and is a proof-of-concept web server that uses state machines to manage connections.

digraph Client {
// Simplified graph. Does not contain error cases.
"Initial" -> "ReadHeaders" -> "Parsed" -> "KeepAlive" -> "ReadHeaders"
"ReadHeaders" -> "ReadFixedSize" -> "ReadFixedSize" ->"Parsed"
"ReadHeaders" -> "ReadChunked" -> "ReadChunked" -> "Parsed"
"ReadChunked" -> "ReadTrailers" -> "Parsed"
{rank = same; "Initial"; "KeepAlive";}
{rank = same; "ReadFixedSize"; "ReadChunked";}
}

The software is still very incomplete and not yet usable.