FMHttpTransfer Class Reference

Inherits from NSObject
Declared in FM.h

Overview

Base class that defines methods for transferring content over HTTP.

+ addOnSendFinishWithValue:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendFinishWithValue:(FMCallback *)value

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendFinish:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendFinish:(FMCallback *)value

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendFinishWithValueBlock:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendFinishWithValueBlock:(void ( ^ ) ( FMHttpSendFinishArgs *))valueBlock

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendFinishBlock:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendFinishBlock:(void ( ^ ) ( FMHttpSendFinishArgs *))valueBlock

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendStartWithValue:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendStartWithValue:(FMCallback *)value

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendStart:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendStart:(FMCallback *)value

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendStartWithValueBlock:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendStartWithValueBlock:(void ( ^ ) ( FMHttpSendStartArgs *))valueBlock

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addOnSendStartBlock:

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

+ (FMCallback *)addOnSendStartBlock:(void ( ^ ) ( FMHttpSendStartArgs *))valueBlock

Discussion

Adds a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ addQueryToUrlWithUrl:key:

Escapes and adds a query parameter as a key/empty-value pair to a URL.

+ (NSString *)addQueryToUrlWithUrl:(NSString *)url key:(NSString *)key

Parameters

name="url">The

URL with the query to which the key/value should be added.

name="key">The

key of the query parameter to add. The original URL with the query parameter added.

Discussion

Escapes and adds a query parameter as a key/empty-value pair to a URL.

Declared In

FM.h

+ addQueryToUrl:key:

Escapes and adds a query parameter as a key/empty-value pair to a URL.

+ (NSString *)addQueryToUrl:(NSString *)url key:(NSString *)key

Parameters

name="url">The

URL with the query to which the key/value should be added.

name="key">The

key of the query parameter to add. The original URL with the query parameter added.

Discussion

Escapes and adds a query parameter as a key/empty-value pair to a URL.

Declared In

FM.h

+ addQueryToUrlWithUrl:key:value:

Escapes and adds a query parameter as a key/value pair to a URL.

+ (NSString *)addQueryToUrlWithUrl:(NSString *)url key:(NSString *)key value:(NSString *)value

Parameters

name="url">The

URL with the query to which the key/value should be added.

name="value">The

value of the query parameter to add. The original URL with the query parameter added.

name="key">The

key of the query parameter to add.

Discussion

Escapes and adds a query parameter as a key/value pair to a URL.

Declared In

FM.h

+ addQueryToUrl:key:value:

Escapes and adds a query parameter as a key/value pair to a URL.

+ (NSString *)addQueryToUrl:(NSString *)url key:(NSString *)key value:(NSString *)value

Parameters

name="url">The

URL with the query to which the key/value should be added.

name="value">The

value of the query parameter to add. The original URL with the query parameter added.

name="key">The

key of the query parameter to add.

Discussion

Escapes and adds a query parameter as a key/value pair to a URL.

Declared In

FM.h

+ getRandomWildcardCharacter

Gets a random wildcard character. A random wildcard character.

+ (NSString *)getRandomWildcardCharacter

Discussion

Gets a random wildcard character. A random wildcard character.

Declared In

FM.h

+ removeOnSendFinishWithValue:

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

+ (void)removeOnSendFinishWithValue:(FMCallback *)value

Discussion

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ removeOnSendFinish:

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

+ (void)removeOnSendFinish:(FMCallback *)value

Discussion

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ removeOnSendStartWithValue:

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

+ (void)removeOnSendStartWithValue:(FMCallback *)value

Discussion

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ removeOnSendStart:

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

+ (void)removeOnSendStart:(FMCallback *)value

Discussion

Removes a handler that is raised before an HTTP request is sent. The associated with the event.

Declared In

FM.h

+ replaceWildcardsWithUrl:

Replaces asterisks in URLs with characters from WildcardCharacters.

+ (NSString *)replaceWildcardsWithUrl:(NSString *)url

Parameters

name="url">The

URL with asterisks.

Discussion

Replaces asterisks in URLs with characters from WildcardCharacters.

Declared In

FM.h

– sendAsyncWithRequestArgs:callback:

Sends a request asynchronously.

- (void)sendAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callback:(FMCallback *)callback

Parameters

name="requestArgs">The

request parameters.

name="callback">The

callback to execute with the resulting response.

Discussion

Sends a request asynchronously.

Declared In

FM.h

– sendAsyncWithRequestArgs:callbackBlock:

Sends a request asynchronously.

- (void)sendAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callbackBlock:(void ( ^ ) ( FMHttpResponseArgs *))callbackBlock

Parameters

name="requestArgs">The

request parameters.

name="callback">The

callback to execute with the resulting response.

Discussion

Sends a request asynchronously.

Declared In

FM.h

– sendBinaryAsyncWithRequestArgs:callback:

Sends binary content asynchronously using the specified arguments.

- (void)sendBinaryAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callback:(FMCallback *)callback

Parameters

name="requestArgs">The

request arguments.

name="callback">The

callback to execute on success or failure.

Discussion

Sends binary content asynchronously using the specified arguments.

Declared In

FM.h

– sendBinaryAsyncWithRequestArgs:callbackBlock:

Sends binary content asynchronously using the specified arguments.

- (void)sendBinaryAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callbackBlock:(void ( ^ ) ( FMHttpResponseArgs *))callbackBlock

Parameters

name="requestArgs">The

request arguments.

name="callback">The

callback to execute on success or failure.

Discussion

Sends binary content asynchronously using the specified arguments.

Declared In

FM.h

– sendBinaryWithRequestArgs:

Sends binary content synchronously using the specified arguments.

- (FMHttpResponseArgs *)sendBinaryWithRequestArgs:(FMHttpRequestArgs *)requestArgs

Parameters

name="requestArgs">The

request arguments. The response arguments from the server.

Discussion

Sends binary content synchronously using the specified arguments.

Declared In

FM.h

– sendTextAsyncWithRequestArgs:callback:

Sends text content asynchronously using the specified arguments.

- (void)sendTextAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callback:(FMCallback *)callback

Parameters

name="requestArgs">The

request arguments.

name="callback">The

callback to execute on success or failure.

Discussion

Sends text content asynchronously using the specified arguments.

Declared In

FM.h

– sendTextAsyncWithRequestArgs:callbackBlock:

Sends text content asynchronously using the specified arguments.

- (void)sendTextAsyncWithRequestArgs:(FMHttpRequestArgs *)requestArgs callbackBlock:(void ( ^ ) ( FMHttpResponseArgs *))callbackBlock

Parameters

name="requestArgs">The

request arguments.

name="callback">The

callback to execute on success or failure.

Discussion

Sends text content asynchronously using the specified arguments.

Declared In

FM.h

– sendTextWithRequestArgs:

Sends text content synchronously using the specified arguments.

- (FMHttpResponseArgs *)sendTextWithRequestArgs:(FMHttpRequestArgs *)requestArgs

Parameters

name="requestArgs">The

request arguments. The response arguments from the server.

Discussion

Sends text content synchronously using the specified arguments.

Declared In

FM.h

– sendWithRequestArgs:

Sends a request synchronously.

- (FMHttpResponseArgs *)sendWithRequestArgs:(FMHttpRequestArgs *)requestArgs

Parameters

name="requestArgs">The

request parameters. The resulting response.

Discussion

Sends a request synchronously.

Declared In

FM.h

+ setWildcardCharacters:

Sets the wildcard characters used to replace asterisks in ReplaceWildcards.

+ (void)setWildcardCharacters:(NSString *)value

Discussion

Sets the wildcard characters used to replace asterisks in ReplaceWildcards.

Declared In

FM.h

– shutdown

Releases any resources and shuts down.

- (void)shutdown

Discussion

Releases any resources and shuts down.

Declared In

FM.h

+ wildcardCharacters

Gets the wildcard characters used to replace asterisks in ReplaceWildcards.

+ (NSString *)wildcardCharacters

Discussion

Gets the wildcard characters used to replace asterisks in ReplaceWildcards.

Declared In

FM.h