request.hpp 675 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // request.hpp
  3. // ~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2019 Christopher M. Kohlhoff (chris at kohlhoff dot com)
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  9. //
  10. #ifndef HTTP_REQUEST_HPP
  11. #define HTTP_REQUEST_HPP
  12. #include <string>
  13. #include <vector>
  14. #include "header.hpp"
  15. namespace http {
  16. namespace server {
  17. /// A request received from a client.
  18. struct request
  19. {
  20. std::string method;
  21. std::string uri;
  22. int http_version_major;
  23. int http_version_minor;
  24. std::vector<header> headers;
  25. };
  26. } // namespace server
  27. } // namespace http
  28. #endif // HTTP_REQUEST_HPP