From 99c1f621ebd8d119c5d2dc3a88ecf255058acec0 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Wed, 11 Feb 2026 14:38:32 -0700 Subject: [PATCH] Add connection_shared() public accessor for SSL peer cert resolution --- server_http.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server_http.hpp b/server_http.hpp index baace86..50f7a86 100644 --- a/server_http.hpp +++ b/server_http.hpp @@ -297,6 +297,10 @@ namespace SimpleWeb { CaseInsensitiveMultimap parse_query_string() const noexcept { return SimpleWeb::QueryString::parse(query_string); } + + std::shared_ptr connection_shared() const noexcept { + return connection.lock(); + } }; protected: