Inherits from CRRouter : NSObject
Declared in CRServer.h

Properties

delegate

@property (nonatomic, strong, nullable) id<CRServerDelegate> delegate

delegateQueue

@property (nonatomic, strong, nullable) dispatch_queue_t delegateQueue

Instance Methods

closeAllConnections:

- (void)closeAllConnections:(dispatch_block_t _Nullable)completion

initWithDelegate:

- (instancetype)initWithDelegate:(id<CRServerDelegate> _Nullable)delegate

initWithDelegate:delegateQueue:

- (instancetype)initWithDelegate:(id<CRServerDelegate> _Nullable)delegate delegateQueue:(dispatch_queue_t _Nullable)delegateQueue

mountStaticDirectoryAtPath:forPath:

- (void)mountStaticDirectoryAtPath:(NSString *)directoryPath forPath:(NSString *)path

mountStaticDirectoryAtPath:forPath:options:

- (void)mountStaticDirectoryAtPath:(NSString *)directoryPath forPath:(NSString *)path options:(CRStaticDirectoryServingOptions)options

mountStaticFileAtPath:forPath:

- (void)mountStaticFileAtPath:(NSString *)filePath forPath:(NSString *)path

mountStaticFileAtPath:forPath:options:

- (void)mountStaticFileAtPath:(NSString *)filePath forPath:(NSString *)path options:(CRStaticFileServingOptions)options

mountStaticFileAtPath:forPath:options:fileName:

- (void)mountStaticFileAtPath:(NSString *)filePath forPath:(NSString *)path options:(CRStaticFileServingOptions)options fileName:(NSString *_Nullable)fileName

mountStaticFileAtPath:forPath:options:fileName:contentType:

- (void)mountStaticFileAtPath:(NSString *)filePath forPath:(NSString *)path options:(CRStaticFileServingOptions)options fileName:(NSString *_Nullable)fileName contentType:(NSString *_Nullable)contentType

mountStaticFileAtPath:forPath:options:fileName:contentType:contentDisposition:

- (void)mountStaticFileAtPath:(NSString *)filePath forPath:(NSString *)path options:(CRStaticFileServingOptions)options fileName:(NSString *_Nullable)fileName contentType:(NSString *_Nullable)contentType contentDisposition:(CRStaticFileContentDisposition)contentDisposition

startListening

- (BOOL)startListening

startListening:

- (BOOL)startListening:(NSError *_Nullable __autoreleasing *_Nullable)error

startListening:portNumber:

- (BOOL)startListening:(NSError *_Nullable __autoreleasing *_Nullable)error portNumber:(NSUInteger)portNumber

startListening:portNumber:interface:

- (BOOL)startListening:(NSError *_Nullable __autoreleasing *_Nullable)error portNumber:(NSUInteger)portNumber interface:(NSString *_Nullable)interface

stopListening

- (void)stopListening