9d0a5193a5
handling
16 lines
277 B
C++
16 lines
277 B
C++
#pragma once
|
|
|
|
#include "tcp_server_base.hpp"
|
|
|
|
class HttpServer : public TcpServerBase
|
|
{
|
|
public:
|
|
HttpServer(IoContext &io, unsigned short port, std::string rootDir);
|
|
|
|
protected:
|
|
void createSession(TcpSocket socket) override;
|
|
|
|
private:
|
|
std::string rootDir_;
|
|
};
|