예제 #1
0
        public HttpRequestAsyncHandler FindAsyncHandler(HttpConnection p)
        {
            HttpRequestAsyncHandler handler = null;

            try {
                handler = pathroutes[p.Url_path] as HttpRequestAsyncHandler;
            } catch (KeyNotFoundException) {
                return(null);
            }
            return(handler);
        }
예제 #2
0
 public void RemoveAsyncFilter(HttpRequestAsyncHandler func)
 {
     filters.Remove(func);
 }
예제 #3
0
 public void AddAsyncFilter(HttpRequestAsyncHandler func)
 {
     filters.Add(func);
 }
예제 #4
0
 public void AddAsyncRoute(string path, HttpRequestAsyncHandler handler)
 {
     pathroutes.Add(path, handler);
 }