FMLiveSwitchHttpFileTransfer Class Reference

Helper methods for downloading binary files. More...

Instance Methods

(instancetype) - init
 

Class Methods

(FMLiveSwitchFuture< FMLiveSwitchDataBuffer * > *) + downloadFileWithUrl:
 Downloads a file from the url. More...
 
(FMLiveSwitchFuture< id > *) + downloadFileWithUrl:filePath:
 Downloads a file from the url. More...
 
(FMLiveSwitchHttpFileTransfer *) + httpFileTransfer
 

Detailed Description

Helper methods for downloading binary files.

Method Documentation

◆ downloadFileWithUrl:

+ (FMLiveSwitchFuture<FMLiveSwitchDataBuffer*>*) downloadFileWithUrl: (NSString *)  url

Downloads a file from the url.

Decompresses using BZip2 if needed.

Parameters
urlThe URL.

◆ downloadFileWithUrl:filePath:

+ (FMLiveSwitchFuture<id>*) downloadFileWithUrl: (NSString *)  url
filePath: (NSString *)  filePath 

Downloads a file from the url.

Decompresses using BZip2 if needed. Then saves to the file system at filePath.

Parameters
urlThe URL.
filePathThe file path.

◆ httpFileTransfer

+ (FMLiveSwitchHttpFileTransfer*) httpFileTransfer

◆ init

- (instancetype) init