From 703e183e430f15aff6005d38aefcacf91e2314cd Mon Sep 17 00:00:00 2001 From: yum Date: Wed, 13 Sep 2023 21:43:33 -0700 Subject: General cleanup Remove unused proxy code, curl, and images. --- BrowserSource/Proxy/WebServer.h | 48 ----------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 BrowserSource/Proxy/WebServer.h (limited to 'BrowserSource/Proxy/WebServer.h') diff --git a/BrowserSource/Proxy/WebServer.h b/BrowserSource/Proxy/WebServer.h deleted file mode 100644 index 7815e89..0000000 --- a/BrowserSource/Proxy/WebServer.h +++ /dev/null @@ -1,48 +0,0 @@ -#pragma once - -#include - -#include -#include -#include -#include -#include -#include - -#include "WebCommon.h" - -namespace WebServer { - class WebServer { - public: - WebServer(std::uint16_t port); - - typedef std::function handler_t; - - bool RegisterPathHandler(const std::string& method, - const std::string& path, handler_t&& handler); - void RegisterDefaultHandler(handler_t&& handler); - - bool Run(volatile bool* run); - - private: - // Dispatch requests by mapping from (method, path) to handler. - // Dispatch key is (method, path) in that order. - typedef std::tuple dispatch_key_t; - static inline dispatch_key_t GetDispatchKey(const std::string& method, const std::string& path) - { - return dispatch_key_t(method, path); - } - - typedef std::map dispatch_map_t; - dispatch_map_t dispatch_map_; - handler_t default_handler_; - - const uint16_t port_; - - std::vector> connections_; - }; -} - -- cgit v1.2.3