Files
real-e-party-iOS/YuMi/Tools/CocoaHttpServer/MyHTTPConnection.h
edwinQQQ a35a711be6 chore: Initial clean commit
- Removed YuMi/Library/ (138 MB, not tracked)
- Removed YuMi/Resources/ (23 MB, not tracked)
- Removed old version assets (566 files, not tracked)
- Excluded Pods/, xcuserdata/ and other build artifacts
- Clean repository optimized for company server deployment
2025-10-09 16:19:14 +08:00

59 lines
1.4 KiB
Objective-C
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#import "HTTPConnection.h"
@class MultipartFormDataParser;
@class MyHTTPConnection;
@protocol MyHTTPConnectionDelegate <NSObject>
@required
/**
设置目标地址
@param server 服务器 ftp self
@return 目标地址str
*/
- (NSString *)onSetDestinationPathHttpFileTranSportDestination:(MyHTTPConnection *)server;
@optional
/**
文件传输并存储成功
@param server 服务器 ftp self
@param filePath 文件路径(含文件名)
*/
- (void)onHttpFileTranSportServer:(MyHTTPConnection *)server successWithPath:(NSString *)filePath;
/**
文件判断
@param server 服务器 ftp self
@param filePath 文件路径(含文件名)
@return 如果是重复文件就返回NO
*/
- (BOOL)onHttpFileDataEstimateDuplicateCanPassTranSportServer:(MyHTTPConnection *)server withPath:(NSString *)filePath andFileName:(NSString *)fileName;
@end
@interface MyHTTPConnection : HTTPConnection {
MultipartFormDataParser* parser;
NSFileHandle* storeFile;
NSMutableArray* uploadedFiles;
}
/**
文件路径(含文件名)
*/
@property (nonatomic, strong) NSString *filePath;
/**
文件夹路径(不含文件名)
*/
@property (strong, nonatomic) NSString *destinationPath;
/**
delegate:MyHTTPConnectionDelegate
*/
@property (nonatomic, weak) id <MyHTTPConnectionDelegate> delegate;
@end