Inherits from CMISHttpRequest : NSObject
Declared in CMISHttpDownloadRequest.h

Tasks

Properties

bytesDownloaded

@property (nonatomic, readonly) unsigned long long bytesDownloaded

bytesExpected

@property (nonatomic, assign) unsigned long long bytesExpected

outputStream

@property (nonatomic, strong) NSOutputStream *outputStream

Class Methods

startRequest:httpMethod:outputStream:bytesExpected:authenticationProvider:completionBlock:progressBlock:

starts a URL request for download. Data are written to the provided output stream completionBlock returns a CMISHttpResponse object or nil if unsuccessful

+ (id)startRequest:(NSMutableURLRequest *)urlRequest httpMethod:(CMISHttpRequestMethod)httpRequestMethod outputStream:(NSOutputStream *)outputStream bytesExpected:(unsigned long long)bytesExpected authenticationProvider:(id<CMISAuthenticationProvider>)authenticationProvider completionBlock:(void ( ^ ) ( CMISHttpResponse *httpResponse , NSError *error ))completionBlock progressBlock:(void ( ^ ) ( unsigned long long bytesDownloaded , unsigned long long bytesTotal ))progressBlock

Discussion

starts a URL request for download. Data are written to the provided output stream completionBlock returns a CMISHttpResponse object or nil if unsuccessful

Declared In

CMISHttpDownloadRequest.h