From fc58a0bec8bf779af3afecbc6ca59a7b9c9c0b67 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 7 Nov 2016 10:42:23 +0100 Subject: Added basic HTTP server, not active yet, based on ASIO example with small refactoring included (nw) --- src/lib/http/request.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/lib/http/request.hpp (limited to 'src/lib/http/request.hpp') 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 +#include +#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
headers; +}; + +} // namespace server +} // namespace http + +#endif // HTTP_REQUEST_HPP -- cgit v1.2.3-70-g09d2