Static "Hello world" page
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
|
||||
#include "fastcgi_request.h"
|
||||
|
||||
class FastCGIServer {
|
||||
public:
|
||||
FastCGIServer(int port);
|
||||
FastCGIServer(int port, const std::function<void(std::unique_ptr<FastCGIRequest>)>& callback);
|
||||
void Serve();
|
||||
|
||||
private:
|
||||
int listen_sock_;
|
||||
std::function<void(std::unique_ptr<FastCGIRequest>)> callback_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user