blob: cb98beaa4e1f967f3077db6f758b8613ab8b20e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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;
};
|