12345678910111213141516171819202122232425262728293031323334353637383940 |
- #import "QNHttpDelegate.h"
- #import <Foundation/Foundation.h>
- #import "QNConfiguration.h"
- #if (defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000) || (defined(__MAC_OS_X_VERSION_MAX_ALLOWED) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 1090)
- @interface QNSessionManager : NSObject <QNHttpDelegate>
- - (instancetype)initWithProxy:(NSDictionary *)proxyDict
- timeout:(UInt32)timeout
- urlConverter:(QNUrlConvert)converter;
- - (void)multipartPost:(NSString *)url
- withData:(NSData *)data
- withParams:(NSDictionary *)params
- withFileName:(NSString *)key
- withMimeType:(NSString *)mime
- withCompleteBlock:(QNCompleteBlock)completeBlock
- withProgressBlock:(QNInternalProgressBlock)progressBlock
- withCancelBlock:(QNCancelBlock)cancelBlock
- withAccess:(NSString *)access;
- - (void)post:(NSString *)url
- withData:(NSData *)data
- withParams:(NSDictionary *)params
- withHeaders:(NSDictionary *)headers
- withCompleteBlock:(QNCompleteBlock)completeBlock
- withProgressBlock:(QNInternalProgressBlock)progressBlock
- withCancelBlock:(QNCancelBlock)cancelBlock
- withAccess:(NSString *)access;
- - (void)get:(NSString *)url
- withHeaders:(NSDictionary *)headers
- withCompleteBlock:(QNCompleteBlock)completeBlock;
- @end
- #endif
|