diff options
author | 2016-11-07 10:42:23 +0100 | |
---|---|---|
committer | 2016-11-07 10:42:23 +0100 | |
commit | fc58a0bec8bf779af3afecbc6ca59a7b9c9c0b67 (patch) | |
tree | 011e6d736c6e191f130c066a860e7fda9d0e0014 /src/lib/http/request.hpp | |
parent | ce0e6e6a3e114625e6b33a2ab75489a5b0cba17b (diff) |
Added basic HTTP server, not active yet, based on ASIO example with small refactoring included (nw)
Diffstat (limited to 'src/lib/http/request.hpp')
-rw-r--r-- | src/lib/http/request.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/lib/http/request.hpp b/src/lib/http/request.hpp new file mode 100644 index 00000000000..fc824435cb3 --- /dev/null +++ b/src/lib/http/request.hpp @@ -0,0 +1,27 @@ +// license:Boost +// copyright-holders:Christopher M. Kohlhoff + +#ifndef HTTP_REQUEST_HPP +#define HTTP_REQUEST_HPP + +#include <string> +#include <vector> +#include "header.hpp" + +namespace http { +namespace server { + +/// A request received from a client. +struct request +{ + std::string method; + std::string uri; + int http_version_major; + int http_version_minor; + std::vector<header> headers; +}; + +} // namespace server +} // namespace http + +#endif // HTTP_REQUEST_HPP |