Inherits from NSObject
Declared in CRRouter.h

Properties

notFoundBlock

@property (nonatomic, strong) CRRouteBlock notFoundBlock

Class Methods

errorHandlingBlockWithStatus:error:

+ (CRRouteBlock)errorHandlingBlockWithStatus:(NSUInteger)statusCode error:(NSError *_Nullable)error

Instance Methods

addBlock:

- (void)addBlock:(CRRouteBlock)block

addBlock:forPath:

- (void)addBlock:(CRRouteBlock)block forPath:(NSString *_Nullable)path

addBlock:forPath:HTTPMethod:

- (void)addBlock:(CRRouteBlock)block forPath:(NSString *_Nullable)path HTTPMethod:(CRHTTPMethod)method

addBlock:forPath:HTTPMethod:recursive:

- (void)addBlock:(CRRouteBlock)block forPath:(NSString *_Nullable)path HTTPMethod:(CRHTTPMethod)method recursive:(BOOL)recursive

addController:forPath:

- (void)addController:(__unsafe_unretained Class)controllerClass forPath:(NSString *)path

addController:forPath:HTTPMethod:

- (void)addController:(__unsafe_unretained Class)controllerClass forPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method

addController:forPath:HTTPMethod:recursive:

- (void)addController:(__unsafe_unretained Class)controllerClass forPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method recursive:(BOOL)recursive

addRoute:forPath:HTTPMethod:recursive:

- (void)addRoute:(CRRoute *)route forPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method recursive:(BOOL)recursive

addViewController:withNibName:bundle:forPath:

- (void)addViewController:(__unsafe_unretained Class)viewControllerClass withNibName:(NSString *_Nullable)nibNameOrNil bundle:(NSBundle *_Nullable)nibBundleOrNil forPath:(NSString *)path

addViewController:withNibName:bundle:forPath:HTTPMethod:

- (void)addViewController:(__unsafe_unretained Class)viewControllerClass withNibName:(NSString *_Nullable)nibNameOrNil bundle:(NSBundle *_Nullable)nibBundleOrNil forPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method

addViewController:withNibName:bundle:forPath:HTTPMethod:recursive:

- (void)addViewController:(__unsafe_unretained Class)viewControllerClass withNibName:(NSString *_Nullable)nibNameOrNil bundle:(NSBundle *_Nullable)nibBundleOrNil forPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method recursive:(BOOL)recursive

executeRoutes:forRequest:response:

- (void)executeRoutes:(NSArray<CRRoute*> *)routes forRequest:(CRRequest *)request response:(CRResponse *)response

executeRoutes:forRequest:response:withNotFoundBlock:

- (void)executeRoutes:(NSArray<CRRoute*> *)routes forRequest:(CRRequest *)request response:(CRResponse *)response withNotFoundBlock:(CRRouteBlock _Nullable)notFoundBlock

routesForPath:HTTPMethod:

- (NSArray<CRRoute*> *)routesForPath:(NSString *)path HTTPMethod:(CRHTTPMethod)method