#pragma once #include #include #include #include "fastcgi_request.h" class FastCGIServer { public: FastCGIServer(int port, const std::function)>& callback, const std::unordered_set& headers={}); void Serve(); private: int listen_sock_; const std::function)> callback_; const std::unordered_set headers_; };