public ProxyRequestHandler(HttpStack httpStack, string localResource, bool proxyingEnabled) { _httpStack = httpStack; _localResource = localResource; _proxyingEnabled = proxyingEnabled; _uri = "/" + localResource + "/"; }
/// <summary> /// Create the proxy server on a specific port /// </summary> /// <param name="httpPort">http port</param> public ProxyHttpServer(Int32 httpPort) { _httpStack = new HttpStack(httpPort) { RequestHandler = HandleRequest }; }