Arguments for sending an HTTP request. More...
Instance Methods | |
(NSMutableData *) | - binaryContent |
Gets the binary content to transfer over HTTP. More... | |
(FMLiveSwitchNameValueCollection *) | - headers |
Gets the headers to transfer over HTTP. More... | |
(instancetype) | - init |
Initializes a new instance of the FMLiveSwitchHttpRequestArgs class with default values. More... | |
(int) | - maxRetries |
Gets the maximum number of retries allowed. More... | |
(FMLiveSwitchHttpMethod) | - method |
Gets the HTTP method. More... | |
(FMLiveSwitchAction1< FMLiveSwitchHttpRequestCreatedArgs * > *) | - onRequestCreated |
Gets the callback to invoke once the outgoing HTTP request is created. More... | |
(FMLiveSwitchAction1< FMLiveSwitchHttpResponseReceivedArgs * > *) | - onResponseReceived |
Gets the callback to invoke once the incoming HTTP response has been received. More... | |
(id) | - sender |
Gets the sender of the content, either a client or publisher. More... | |
(void) | - setBinaryContent: |
Sets the binary content to transfer over HTTP. More... | |
(void) | - setHeaders: |
Sets the headers to transfer over HTTP. More... | |
(void) | - setMaxRetries: |
Sets the maximum number of retries allowed. More... | |
(void) | - setMethod: |
Sets the HTTP method. More... | |
(void) | - setOnRequestCreated: |
Sets the callback to invoke once the outgoing HTTP request is created. More... | |
(FMLiveSwitchHttpRequestCreatedArgs *) | - setOnRequestCreatedBlock |
Sets the callback to invoke once the outgoing HTTP request is created. More... | |
(void) | - setOnRequestCreatedBlock: |
Sets the callback to invoke once the outgoing HTTP request is created. More... | |
(void) | - setOnResponseReceived: |
Sets the callback to invoke once the incoming HTTP response has been received. More... | |
(FMLiveSwitchHttpResponseReceivedArgs *) | - setOnResponseReceivedBlock |
Sets the callback to invoke once the incoming HTTP response has been received. More... | |
(void) | - setOnResponseReceivedBlock: |
Sets the callback to invoke once the incoming HTTP response has been received. More... | |
(void) | - setSender: |
Sets the sender of the content, either a client or publisher. More... | |
(void) | - setTextContent: |
Sets the text content to transfer over HTTP. More... | |
(void) | - setTimeout: |
Sets the number of milliseconds to wait before timing out the HTTP transfer. More... | |
(void) | - setUrl: |
Sets the target URL for the HTTP request. More... | |
(NSString *) | - textContent |
Gets the text content to transfer over HTTP. More... | |
(int) | - timeout |
Gets the number of milliseconds to wait before timing out the HTTP transfer. More... | |
(NSString *) | - url |
Gets the target URL for the HTTP request. More... | |
Instance Methods inherited from FMLiveSwitchDynamic | |
(NSMutableDictionary< NSString *, id > *) | - dynamicProperties |
Gets all dynamic properties on this instance. More... | |
(id) | - getDynamicValueWithKey: |
Gets a property value from the local cache. More... | |
(void) | - setDynamicValueWithKey:value: |
Sets a property value in the local cache. More... | |
(bool) | - unsetDynamicValueWithKey: |
Removes a property value from the local cache. More... | |
Class Methods | |
(FMLiveSwitchHttpRequestArgs *) | + httpRequestArgs |
Initializes a new instance of the FMLiveSwitchHttpRequestArgs class with default values. More... | |
Class Methods inherited from FMLiveSwitchDynamic | |
(FMLiveSwitchDynamic *) | + dynamic |
Class Methods inherited from FMLiveSwitchSerializable | |
(FMLiveSwitchSerializable *) | + serializable |
Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
Arguments for sending an HTTP request.
- (NSMutableData*) binaryContent |
Gets the binary content to transfer over HTTP.
Overrides textContent.
- (FMLiveSwitchNameValueCollection*) headers |
Gets the headers to transfer over HTTP.
+ (FMLiveSwitchHttpRequestArgs*) httpRequestArgs |
Initializes a new instance of the FMLiveSwitchHttpRequestArgs class with default values.
- (instancetype) init |
Initializes a new instance of the FMLiveSwitchHttpRequestArgs class with default values.
Implements FMLiveSwitchDynamic.
- (int) maxRetries |
Gets the maximum number of retries allowed.
- (FMLiveSwitchHttpMethod) method |
Gets the HTTP method.
- (FMLiveSwitchAction1<FMLiveSwitchHttpRequestCreatedArgs*>*) onRequestCreated |
Gets the callback to invoke once the outgoing HTTP request is created.
See FMLiveSwitchHttpRequestCreatedArgs for callback argument details.
- (FMLiveSwitchAction1<FMLiveSwitchHttpResponseReceivedArgs*>*) onResponseReceived |
Gets the callback to invoke once the incoming HTTP response has been received.
See FMLiveSwitchHttpResponseReceivedArgs for callback argument details.
- (id) sender |
Gets the sender of the content, either a client or publisher.
- (void) setBinaryContent: | (NSMutableData *) | value |
Sets the binary content to transfer over HTTP.
Overrides textContent.
- (void) setHeaders: | (FMLiveSwitchNameValueCollection *) | value |
Sets the headers to transfer over HTTP.
- (void) setMaxRetries: | (int) | value |
Sets the maximum number of retries allowed.
- (void) setMethod: | (FMLiveSwitchHttpMethod) | value |
Sets the HTTP method.
- (void) setOnRequestCreated: | (FMLiveSwitchAction1< FMLiveSwitchHttpRequestCreatedArgs * > *) | value |
Sets the callback to invoke once the outgoing HTTP request is created.
See FMLiveSwitchHttpRequestCreatedArgs for callback argument details.
- (FMLiveSwitchHttpRequestCreatedArgs*) setOnRequestCreatedBlock |
Sets the callback to invoke once the outgoing HTTP request is created.
See FMLiveSwitchHttpRequestCreatedArgs for callback argument details.
- (void) setOnRequestCreatedBlock: | (void(^)(FMLiveSwitchHttpRequestCreatedArgs *)) | valueBlock |
Sets the callback to invoke once the outgoing HTTP request is created.
See FMLiveSwitchHttpRequestCreatedArgs for callback argument details.
- (void) setOnResponseReceived: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseReceivedArgs * > *) | value |
Sets the callback to invoke once the incoming HTTP response has been received.
See FMLiveSwitchHttpResponseReceivedArgs for callback argument details.
- (FMLiveSwitchHttpResponseReceivedArgs*) setOnResponseReceivedBlock |
Sets the callback to invoke once the incoming HTTP response has been received.
See FMLiveSwitchHttpResponseReceivedArgs for callback argument details.
- (void) setOnResponseReceivedBlock: | (void(^)(FMLiveSwitchHttpResponseReceivedArgs *)) | valueBlock |
Sets the callback to invoke once the incoming HTTP response has been received.
See FMLiveSwitchHttpResponseReceivedArgs for callback argument details.
- (void) setSender: | (id) | value |
Sets the sender of the content, either a client or publisher.
- (void) setTextContent: | (NSString *) | value |
Sets the text content to transfer over HTTP.
- (void) setTimeout: | (int) | value |
Sets the number of milliseconds to wait before timing out the HTTP transfer.
Defaults to 15000 ms (15 seconds).
- (void) setUrl: | (NSString *) | value |
Sets the target URL for the HTTP request.
- (NSString*) textContent |
Gets the text content to transfer over HTTP.
- (int) timeout |
Gets the number of milliseconds to wait before timing out the HTTP transfer.
Defaults to 15000 ms (15 seconds).
- (NSString*) url |
Gets the target URL for the HTTP request.