From 89fec2f1689b4390e623af4343aba7bc7686911a Mon Sep 17 00:00:00 2001 From: Ryan Hurey Date: Tue, 25 Nov 2025 19:09:26 -0800 Subject: [PATCH] feat: Add GetRequestHandle() method for WebSocket support --- sdk/core/azure-core/src/http/winhttp/win_http_request.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp b/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp index 9ce50d881..2e66ef158 100644 --- a/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp +++ b/sdk/core/azure-core/src/http/winhttp/win_http_request.hpp @@ -193,6 +193,9 @@ namespace Azure { namespace Core { namespace Http { namespace _detail { size_t ReadData(uint8_t* buffer, size_t bufferSize, Azure::Core::Context const& context); void EnableWebSocketsSupport(); void HandleExpectedTlsRootCertificates(HINTERNET hInternet); + + // WebSocket support: Provide access to the underlying HINTERNET handle + HINTERNET GetRequestHandle() const { return m_requestHandle.get(); } }; class WinHttpStream final : public Azure::Core::IO::BodyStream {