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