Disable -runWithPort: on iOS

This commit is contained in:
Pierre-Olivier Latour
2014-03-22 20:11:52 -07:00
parent 47b8ea5f7c
commit a3894fbf9b
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -60,10 +60,14 @@ NSDictionary* GCDWebServerParseURLEncodedForm(NSString* form);
+ (NSString*)serverName; // Default is class name
@end
#if !TARGET_OS_IPHONE
@interface GCDWebServer (Extensions)
- (BOOL)runWithPort:(NSUInteger)port; // Starts then automatically stops on SIGINT i.e. Ctrl-C (use on main thread only)
@end
#endif
@interface GCDWebServer (Handlers)
- (void)addDefaultHandlerForMethod:(NSString*)method requestClass:(Class)aClass processBlock:(GCDWebServerProcessBlock)block;
- (void)addHandlerForMethod:(NSString*)method path:(NSString*)path requestClass:(Class)aClass processBlock:(GCDWebServerProcessBlock)block; // Path is case-insensitive