mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-13 00:02:02 +08:00
Fix
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
- (instancetype)initWithUploadDirectory:(NSString*)path;
|
||||
@end
|
||||
|
||||
// These methods can be called from any thread
|
||||
@interface GCDWebDAVServer (Subclassing)
|
||||
- (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath; // Default implementation returns YES
|
||||
- (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath; // Default implementation returns YES
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
@property(nonatomic, readonly) NSUInteger totalBytesWritten;
|
||||
@end
|
||||
|
||||
// These methods can be called from any thread
|
||||
@interface GCDWebServerConnection (Subclassing)
|
||||
- (BOOL)open; // Return NO to reject connection e.g. after validating local or remote addresses
|
||||
- (void)didReadBytes:(const void*)bytes length:(NSUInteger)length; // Called after data has been read from the connection
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
- (instancetype)initWithUploadDirectory:(NSString*)path;
|
||||
@end
|
||||
|
||||
// These methods can be called from any thread
|
||||
@interface GCDWebUploader (Subclassing)
|
||||
- (BOOL)shouldUploadFileAtPath:(NSString*)path withTemporaryFile:(NSString*)tempPath; // Default implementation returns YES
|
||||
- (BOOL)shouldMoveItemFromPath:(NSString*)fromPath toPath:(NSString*)toPath; // Default implementation returns YES
|
||||
|
||||
Reference in New Issue
Block a user