diff options
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 |