FMLiveSwitchHttpResponseArgs Class Reference

Arguments for receiving an HTTP response. More...

Instance Methods

(NSMutableData *) - binaryContent
 Gets the binary content read from the HTTP response. More...
 
(NSException *) - exception
 Gets the exception generated while completing the request. More...
 
(FMLiveSwitchNameValueCollection *) - headers
 Gets the headers read from the HTTP response. More...
 
(instancetype) - initWithRequestArgs:
 Initializes a new instance of the FMLiveSwitchHttpResponseArgs class. More...
 
(FMLiveSwitchHttpRequestArgs *) - requestArgs
 Gets the original FMLiveSwitchHttpRequestArgs. More...
 
(int) - retries
 Gets the number of retries that were required. More...
 
(void) - setBinaryContent:
 Sets the binary content read from the HTTP response. More...
 
(void) - setException:
 Sets the exception generated while completing the request. More...
 
(void) - setRequestArgs:
 Sets the original FMLiveSwitchHttpRequestArgs. More...
 
(void) - setRetries:
 Sets the number of retries that were required. More...
 
(void) - setStatusCode:
 Sets the status code read from the HTTP response. More...
 
(void) - setTextContent:
 Sets the text content read from the HTTP response. More...
 
(int) - statusCode
 Gets the status code read from the HTTP response. More...
 
(NSString *) - textContent
 Gets the text content read from the HTTP response. More...
 

Class Methods

(FMLiveSwitchHttpResponseArgs *) + httpResponseArgsWithRequestArgs:
 Initializes a new instance of the FMLiveSwitchHttpResponseArgs class. More...
 

Detailed Description

Arguments for receiving an HTTP response.

Method Documentation

◆ binaryContent

- (NSMutableData*) binaryContent

Gets the binary content read from the HTTP response.

◆ exception

- (NSException*) exception

Gets the exception generated while completing the request.

◆ headers

- (FMLiveSwitchNameValueCollection*) headers

Gets the headers read from the HTTP response.

◆ httpResponseArgsWithRequestArgs:

+ (FMLiveSwitchHttpResponseArgs*) httpResponseArgsWithRequestArgs: (FMLiveSwitchHttpRequestArgs *)  requestArgs

Initializes a new instance of the FMLiveSwitchHttpResponseArgs class.

Parameters
requestArgsThe request arguments.

◆ initWithRequestArgs:

- (instancetype) initWithRequestArgs: (FMLiveSwitchHttpRequestArgs *)  requestArgs

Initializes a new instance of the FMLiveSwitchHttpResponseArgs class.

Parameters
requestArgsThe request arguments.

◆ requestArgs

- (FMLiveSwitchHttpRequestArgs*) requestArgs

Gets the original FMLiveSwitchHttpRequestArgs.

◆ retries

- (int) retries

Gets the number of retries that were required.

◆ setBinaryContent:

- (void) setBinaryContent: (NSMutableData *)  value

Sets the binary content read from the HTTP response.

◆ setException:

- (void) setException: (NSException *)  value

Sets the exception generated while completing the request.

◆ setRequestArgs:

- (void) setRequestArgs: (FMLiveSwitchHttpRequestArgs *)  value

Sets the original FMLiveSwitchHttpRequestArgs.

◆ setRetries:

- (void) setRetries: (int)  value

Sets the number of retries that were required.

◆ setStatusCode:

- (void) setStatusCode: (int)  value

Sets the status code read from the HTTP response.

◆ setTextContent:

- (void) setTextContent: (NSString *)  value

Sets the text content read from the HTTP response.

◆ statusCode

- (int) statusCode

Gets the status code read from the HTTP response.

◆ textContent

- (NSString*) textContent

Gets the text content read from the HTTP response.