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

#include <map>
#include <string>

class HttpRequest {
public:
	HttpRequest(const std::string& request_string);

	std::string uri() const { return m_uri; }
	std::string header(const std::string& header_key) const { return m_headers.at(header_key); };
private:
	std::map<std::string, std::string> m_headers;
	std::string m_uri;
};