예제 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (hl != null)
     {
         hl.Close();
     }
     hl = null;
     if (!disposing)
     {
         return;
     }
     mimehash = null;
     rfs      = null;
 }
예제 #2
0
파일: ss.cs 프로젝트: lazebird/rabbit
 public ss(HttpListenerRequest request, HttpListenerResponse response, rfs rfs)
 {
     log           = log_func;
     this.request  = request;
     this.response = response;
     this.rfs      = rfs;
     try
     {
         string[] s = Uri.UnescapeDataString(request.RawUrl).Split('?');
         uri = s[0];
         init_args(s.Length > 1 ? ropt.parse_opts(s[1]) : new Hashtable());
     }
     catch (Exception) { }
     response.ContentEncoding = Encoding.UTF8;
 }
예제 #3
0
파일: ss.cs 프로젝트: lazebird/rabbit
 public ss(Action <string> log, HttpListenerRequest request, HttpListenerResponse response, rfs rfs, Hashtable opts) : this(log, request, response, rfs)
 {
     foreach (string key in opts.Keys)
     {
         if (bdic.ContainsKey(key))
         {
             bdic[key] = bool.Parse((string)opts[key]);
         }
     }
 }
예제 #4
0
파일: ss.cs 프로젝트: lazebird/rabbit
 public ss(Action <string> log, HttpListenerRequest request, HttpListenerResponse response, rfs rfs) : this(request, response, rfs)
 {
     this.log = log;
 }
예제 #5
0
 public rhttpd(Action <string> log)
 {
     this.log = log;
     rfs      = new rfs(log_null);
 }