ProxyServer.h (633B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 4 #pragma once 5 6 #include "Result.h" 7 8 #include <memory> 9 10 namespace SFS::test 11 { 12 namespace details 13 { 14 class ProxyServerImpl; 15 } 16 17 // Proxy Server implementation that redirects GET and POST requests directly 18 class ProxyServer 19 { 20 public: 21 ProxyServer(); 22 ~ProxyServer(); 23 24 ProxyServer(const ProxyServer&) = delete; 25 ProxyServer& operator=(const ProxyServer&) = delete; 26 27 Result Stop(); 28 29 std::string GetBaseUrl() const; 30 31 private: 32 std::unique_ptr<details::ProxyServerImpl> m_impl; 33 }; 34 } // namespace SFS::test