public Route(string method, int type, bool regex, string match, SessionHttpContextHandler handler) { Method = method; Type = type; if (regex) { RegEx = new Regex(match); } else { Raw = match; } Handler = handler; }