The FastCGI protocol is a protocol commonly used to relay HTTP requests and responses between a front-end web server (nginx, Apache, etc.) and a back-end web application.
This library implements this protocol for the web application end as a pure state-machine which only takes in bytes and returns a list of parsed events. This leaves users free to use any I/O approach they see fit (asyncio, curio, Twisted, etc.). Sample code is provided for implementing a FastCGI server using a variety of I/O frameworks.