summaryrefslogtreecommitdiffhomepage
path: root/response.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-10 14:22:47 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-10 14:22:47 +0100
commitd02a29f0ff33279268e675aae0856f3f8cf9d939 (patch)
treebbb22aeb9c14488ef0871b34f0400259658d46f0 /response.h
parent1191f07767583a9b19280a4f29cb1b0bd6799785 (diff)
Configurable Websocket für HTTPS
Diffstat (limited to 'response.h')
-rw-r--r--response.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/response.h b/response.h
index ad3d2fc..46de9d9 100644
--- a/response.h
+++ b/response.h
@@ -13,4 +13,11 @@ namespace http = beast::http; // from <boost/beast/http.hpp>
typedef http::request<http::string_body> request_type;
typedef http::response<http::string_body> response_type;
+namespace response {
+
response_type generate_response(request_type& req, Server& server);
+
+// Get host:port e.g. reichwein.it:6543
+std::string get_websocket_address(request_type& req, Server& server);
+
+} // namespace