#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: void NewConn(); const std::function)> callback_; const std::unordered_set headers_; int epoll_fd_; int listen_sock_; };