request.h 735 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // request.hpp
  3. // ~~~~~~~~~~~
  4. //
  5. // Copyright (c) 2003-2010 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 EXPERIMENTAL_HTTP_SERVER_HTTP_REQUEST_H
  11. #define EXPERIMENTAL_HTTP_SERVER_HTTP_REQUEST_H
  12. #include <string>
  13. #include <vector>
  14. #include "Experimental/http_server/header.h"
  15. namespace http_server {
  16. /// A request received from a client.
  17. struct request
  18. {
  19. std::string method;
  20. std::string uri;
  21. int http_version_major;
  22. int http_version_minor;
  23. std::vector<header> headers;
  24. };
  25. } // namespace http_server
  26. #endif // EXPERIMENTAL_HTTP_SERVER_HTTP_REQUEST_H