Base class that defines methods for transferring content over HTTP. More...
Instance Methods | |
(instancetype) | - init |
(void) | - sendAsyncWithRequestArgs:callback: |
Sends a request asynchronously. More... | |
(void) | - sendAsyncWithRequestArgs:callbackBlock: |
Sends a request asynchronously. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendAsyncWithRequestArgsAndCallbackBlock |
Sends a request asynchronously. More... | |
(void) | - sendBinaryAsyncWithRequestArgs:callback: |
Sends binary content asynchronously using the specified arguments. More... | |
(void) | - sendBinaryAsyncWithRequestArgs:callbackBlock: |
Sends binary content asynchronously using the specified arguments. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendBinaryAsyncWithRequestArgsAndCallbackBlock |
Sends binary content asynchronously using the specified arguments. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendBinaryWithRequestArgs: |
Sends binary content synchronously using the specified arguments. More... | |
(void) | - sendTextAsyncWithRequestArgs:callback: |
Sends text content asynchronously using the specified arguments. More... | |
(void) | - sendTextAsyncWithRequestArgs:callbackBlock: |
Sends text content asynchronously using the specified arguments. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendTextAsyncWithRequestArgsAndCallbackBlock |
Sends text content asynchronously using the specified arguments. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendTextWithRequestArgs: |
Sends text content synchronously using the specified arguments. More... | |
(FMLiveSwitchHttpResponseArgs *) | - sendWithRequestArgs: |
Sends a request synchronously. More... | |
(void) | - shutdown |
Releases any resources and shuts down. More... | |
Class Methods | |
(void) | + addOnSendFinish: |
Adds a handler that is raised before an HTTP request is sent. More... | |
(FMLiveSwitchHttpSendFinishArgs *) | + addOnSendFinishWithBlock |
Adds a handler that is raised before an HTTP request is sent. More... | |
(void) | + addOnSendFinishWithBlock: |
Adds a handler that is raised before an HTTP request is sent. More... | |
(void) | + addOnSendStart: |
Adds a handler that is raised before an HTTP request is sent. More... | |
(FMLiveSwitchHttpSendStartArgs *) | + addOnSendStartWithBlock |
Adds a handler that is raised before an HTTP request is sent. More... | |
(void) | + addOnSendStartWithBlock: |
Adds a handler that is raised before an HTTP request is sent. More... | |
(NSString *) | + addQueryToUrl:key: |
Escapes and adds a query parameter as a key/empty-value pair to a URL. More... | |
(NSString *) | + addQueryToUrl:key:value: |
Escapes and adds a query parameter as a key/value pair to a URL. More... | |
(NSString *) | + getRandomWildcardCharacter |
Gets a random wildcard character. More... | |
(FMLiveSwitchHttpTransfer *) | + httpTransfer |
(void) | + removeOnSendFinish: |
Removes a handler that is raised before an HTTP request is sent. More... | |
(void) | + removeOnSendStart: |
Removes a handler that is raised before an HTTP request is sent. More... | |
(NSString *) | + replaceWildcardsWithUrl: |
Replaces asterisks in URLs with characters from WildcardCharacters. More... | |
(void) | + setWildcardCharacters: |
Sets the wildcard characters used to replace asterisks in ReplaceWildcards. More... | |
(NSString *) | + wildcardCharacters |
Gets the wildcard characters used to replace asterisks in ReplaceWildcards. More... | |
Base class that defines methods for transferring content over HTTP.
+ (void) addOnSendFinish: | (FMLiveSwitchAction1< FMLiveSwitchHttpSendFinishArgs * > *) | value |
Adds a handler that is raised before an HTTP request is sent.
+ (FMLiveSwitchHttpSendFinishArgs*) addOnSendFinishWithBlock |
Adds a handler that is raised before an HTTP request is sent.
+ (void) addOnSendFinishWithBlock: | (void(^)(FMLiveSwitchHttpSendFinishArgs *)) | valueBlock |
Adds a handler that is raised before an HTTP request is sent.
+ (void) addOnSendStart: | (FMLiveSwitchAction1< FMLiveSwitchHttpSendStartArgs * > *) | value |
Adds a handler that is raised before an HTTP request is sent.
+ (FMLiveSwitchHttpSendStartArgs*) addOnSendStartWithBlock |
Adds a handler that is raised before an HTTP request is sent.
+ (void) addOnSendStartWithBlock: | (void(^)(FMLiveSwitchHttpSendStartArgs *)) | valueBlock |
Adds a handler that is raised before an HTTP request is sent.
Escapes and adds a query parameter as a key/empty-value pair to a URL.
url | The URL with the query to which the key/value should be added. |
key | The key of the query parameter to add. |
Escapes and adds a query parameter as a key/value pair to a URL.
url | The URL with the query to which the key/value should be added. |
key | The key of the query parameter to add. |
value | The value of the query parameter to add. |
+ (NSString*) getRandomWildcardCharacter |
Gets a random wildcard character.
+ (FMLiveSwitchHttpTransfer*) httpTransfer |
- (instancetype) init |
+ (void) removeOnSendFinish: | (FMLiveSwitchAction1< FMLiveSwitchHttpSendFinishArgs * > *) | value |
Removes a handler that is raised before an HTTP request is sent.
+ (void) removeOnSendStart: | (FMLiveSwitchAction1< FMLiveSwitchHttpSendStartArgs * > *) | value |
Removes a handler that is raised before an HTTP request is sent.
Replaces asterisks in URLs with characters from WildcardCharacters.
url | The URL with asterisks. |
- (void) sendAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callback: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseArgs * > *) | callback | |
Sends a request asynchronously.
requestArgs | The request parameters. |
callback | The callback to execute with the resulting response. |
- (void) sendAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callbackBlock: | (void(^)(FMLiveSwitchHttpResponseArgs *)) | callbackBlock | |
Sends a request asynchronously.
requestArgs | The request parameters. |
callbackBlock | The callback to execute with the resulting response. |
- (FMLiveSwitchHttpResponseArgs*) sendAsyncWithRequestArgsAndCallbackBlock |
Sends a request asynchronously.
@inlineparam requestArgs The request parameters. @inlineparam callbackBlock The callback to execute with the resulting response.
- (void) sendBinaryAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callback: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseArgs * > *) | callback | |
Sends binary content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callback | The callback to execute on success or failure. |
- (void) sendBinaryAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callbackBlock: | (void(^)(FMLiveSwitchHttpResponseArgs *)) | callbackBlock | |
Sends binary content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callbackBlock | The callback to execute on success or failure. |
- (FMLiveSwitchHttpResponseArgs*) sendBinaryAsyncWithRequestArgsAndCallbackBlock |
Sends binary content asynchronously using the specified arguments.
@inlineparam requestArgs The request arguments. @inlineparam callbackBlock The callback to execute on success or failure.
- (FMLiveSwitchHttpResponseArgs*) sendBinaryWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs |
Sends binary content synchronously using the specified arguments.
requestArgs | The request arguments. |
- (void) sendTextAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callback: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseArgs * > *) | callback | |
Sends text content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callback | The callback to execute on success or failure. |
- (void) sendTextAsyncWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs | |
callbackBlock: | (void(^)(FMLiveSwitchHttpResponseArgs *)) | callbackBlock | |
Sends text content asynchronously using the specified arguments.
requestArgs | The request arguments. |
callbackBlock | The callback to execute on success or failure. |
- (FMLiveSwitchHttpResponseArgs*) sendTextAsyncWithRequestArgsAndCallbackBlock |
Sends text content asynchronously using the specified arguments.
@inlineparam requestArgs The request arguments. @inlineparam callbackBlock The callback to execute on success or failure.
- (FMLiveSwitchHttpResponseArgs*) sendTextWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs |
Sends text content synchronously using the specified arguments.
requestArgs | The request arguments. |
- (FMLiveSwitchHttpResponseArgs*) sendWithRequestArgs: | (FMLiveSwitchHttpRequestArgs *) | requestArgs |
Sends a request synchronously.
requestArgs | The request parameters. |
+ (void) setWildcardCharacters: | (NSString *) | value |
Sets the wildcard characters used to replace asterisks in ReplaceWildcards.
- (void) shutdown |
Releases any resources and shuts down.
+ (NSString*) wildcardCharacters |
Gets the wildcard characters used to replace asterisks in ReplaceWildcards.