From 184292b730f4236bd4840e780fdad97ee060ec84 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Mon, 22 Apr 2024 08:04:58 +1000 Subject: 3rdparty/asio: Updated to 1.30.2 --- .../src/examples/cpp11/http/server2/request.hpp | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 3rdparty/asio/src/examples/cpp11/http/server2/request.hpp (limited to '3rdparty/asio/src/examples/cpp11/http/server2/request.hpp') diff --git a/3rdparty/asio/src/examples/cpp11/http/server2/request.hpp b/3rdparty/asio/src/examples/cpp11/http/server2/request.hpp new file mode 100644 index 00000000000..b0000b00967 --- /dev/null +++ b/3rdparty/asio/src/examples/cpp11/http/server2/request.hpp @@ -0,0 +1,34 @@ +// +// request.hpp +// ~~~~~~~~~~~ +// +// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com) +// +// Distributed under the Boost Software License, Version 1.0. (See accompanying +// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) +// + +#ifndef HTTP_SERVER2_REQUEST_HPP +#define HTTP_SERVER2_REQUEST_HPP + +#include +#include +#include "header.hpp" + +namespace http { +namespace server2 { + +/// 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 server2 +} // namespace http + +#endif // HTTP_SERVER2_REQUEST_HPP -- cgit v1.2.3-70-g09d2