protected virtual void Dispose(bool disposing) { if (hl != null) { hl.Close(); } hl = null; if (!disposing) { return; } mimehash = null; rfs = null; }
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; }
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]); } } }
public ss(Action <string> log, HttpListenerRequest request, HttpListenerResponse response, rfs rfs) : this(request, response, rfs) { this.log = log; }
public rhttpd(Action <string> log) { this.log = log; rfs = new rfs(log_null); }