HTTP server implementation as a library