Kinglet is the beginning of a HTTP server based on mio. It manages connnections using state machines from rotor by @tailhook. The most interesting part is the request state machine: with only a few lines of code it supports parsing requests with fixed size bodies, chunked bodies with optional trailers and even pipelining. Adding support for more states like 100-Expect-Continue will be easy. Some parts of the code still need cleanup and the structures of requests and responses will change.