Example #1
0
 public ProxyRequestHandler(HttpStack httpStack, string localResource, bool proxyingEnabled)
 {
     _httpStack       = httpStack;
     _localResource   = localResource;
     _proxyingEnabled = proxyingEnabled;
     _uri             = "/" + localResource + "/";
 }
Example #2
0
 /// <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
     };
 }