summaryrefslogtreecommitdiff
path: root/src/ClientConnection.h
blob: 55be620ec9fac50df2e4c43c2a8bc2e94ff60923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#include "HttpResponse.h"

class ClientConnection {
public:
	ClientConnection(int socket);

	void dump_request_data();

	bool send(const HttpResponse&);
	void close_connection();
private:
	int m_socket_fd;
	bool m_is_open { true };
};