internal static RouteCallback_A Convert(RouteCallback_B callback) => (Request req) => { callback(req); return(PassThrough.Default); };
public static void Put(RoutePatternMatch route, RouteCallback_B callback) => Routing.AddHandler(HTTPMethod.PUT, route, callback);
public static void Delete(RoutePatternMatch route, RouteCallback_B callback) => Routing.AddHandler(HTTPMethod.DELETE, route, callback);
public static void All(HTTPMethod method, RouteCallback_B callback) => Routing.AddHandler(method, callback);
public static void All(RouteCallback_B callback) => Routing.AddHandler(callback);
public static void Route(string method, string route, RouteCallback_B callback) => Routing.AddHandler((MethodArg)method, (RouteArg)route, callback);
public static void Route(HTTPMethod method, string route, RouteCallback_B callback) => Routing.AddHandler(method, (RouteArg)route, callback);
public static void Delete(string route, RouteCallback_B callback) => Routing.AddHandler(HTTPMethod.DELETE, (RouteArg)route, callback);
public static void Route(string route, RouteCallback_B callback) => Routing.AddHandler((RouteArg)route, callback);
public static void Route(HTTPMethod method, RoutePatternMatch route, RouteCallback_B callback) => Routing.AddHandler(method, route, callback);
public static void Put(string route, RouteCallback_B callback) => Routing.AddHandler(HTTPMethod.PUT, (RouteArg)route, callback);
public static void Route(string method, RoutePatternMatch route, RouteCallback_B callback) => Routing.AddHandler((MethodArg)method, route, callback);
public static void Route(RoutePatternMatch route, RouteCallback_B callback) => Routing.AddHandler(route, callback);
public Controller(HTTPMethod method, RoutePatternMatch route, RouteCallback_B callback) : this(method.ToString(), route, route.CreateCallback(callback)) { }
public Controller(HTTPMethod method, string route, RouteCallback_B callback) : this(method, route, RouteCallback.Convert(callback)) { }
public Controller(string method, RoutePatternMatch route, RouteCallback_B callback) : this(method, route, route.CreateCallback(callback)) { }