FMHttpRequestArgs Class Reference

Inherits from FMDynamic : FMSerializable : NSObject
Declared in FM.h

Overview

Arguments for sending an HTTP request.

– binaryContent

Gets the binary content to transfer over HTTP. Overrides .

- (NSMutableData *)binaryContent

Discussion

Gets the binary content to transfer over HTTP. Overrides .

Declared In

FM.h

– headers

Gets the headers to transfer over HTTP.

- (FMNameValueCollection *)headers

Discussion

Gets the headers to transfer over HTTP.

Declared In

FM.h

+ httpRequestArgs

Initializes a new instance of the class with default values.

+ (FMHttpRequestArgs *)httpRequestArgs

Discussion

Initializes a new instance of the class with default values.

Declared In

FM.h

– init

Initializes a new instance of the class with default values.

- (id)init

Discussion

Initializes a new instance of the class with default values.

Declared In

FM.h

– method

Gets the HTTP method.

- (FMHttpMethod)method

Discussion

Gets the HTTP method.

Declared In

FM.h

– onRequestCreated

Gets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

- (FMCallback *)onRequestCreated

Discussion

Gets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

Declared In

FM.h

– onResponseReceived

Gets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

- (FMCallback *)onResponseReceived

Discussion

Gets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

Declared In

FM.h

– sender

Gets the sender of the content, either a client or publisher.

- (NSObject *)sender

Discussion

Gets the sender of the content, either a client or publisher.

Declared In

FM.h

– setBinaryContent:

Sets the binary content to transfer over HTTP. Overrides .

- (void)setBinaryContent:(NSMutableData *)value

Discussion

Sets the binary content to transfer over HTTP. Overrides .

Declared In

FM.h

– setHeaders:

Sets the headers to transfer over HTTP.

- (void)setHeaders:(FMNameValueCollection *)value

Discussion

Sets the headers to transfer over HTTP.

Declared In

FM.h

– setMethod:

Sets the HTTP method.

- (void)setMethod:(FMHttpMethod)value

Discussion

Sets the HTTP method.

Declared In

FM.h

– setOnRequestCreated:

Sets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

- (void)setOnRequestCreated:(FMCallback *)value

Discussion

Sets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

Declared In

FM.h

– setOnRequestCreatedBlock:

Sets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

- (void)setOnRequestCreatedBlock:(void ( ^ ) ( FMHttpRequestCreatedArgs *))valueBlock

Discussion

Sets the callback to invoke once the outgoing HTTP request is created. See for callback argument details.

Declared In

FM.h

– setOnResponseReceived:

Sets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

- (void)setOnResponseReceived:(FMCallback *)value

Discussion

Sets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

Declared In

FM.h

– setOnResponseReceivedBlock:

Sets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

- (void)setOnResponseReceivedBlock:(void ( ^ ) ( FMHttpResponseReceivedArgs *))valueBlock

Discussion

Sets the callback to invoke once the incoming HTTP response has been received. See for callback argument details.

Declared In

FM.h

– setSender:

Sets the sender of the content, either a client or publisher.

- (void)setSender:(NSObject *)value

Discussion

Sets the sender of the content, either a client or publisher.

Declared In

FM.h

– setTextContent:

Sets the text content to transfer over HTTP.

- (void)setTextContent:(NSString *)value

Discussion

Sets the text content to transfer over HTTP.

Declared In

FM.h

– setTimeout:

Sets the number of milliseconds to wait before timing out the HTTP transfer. Defaults to 15000 (15 seconds).

- (void)setTimeout:(int)value

Discussion

Sets the number of milliseconds to wait before timing out the HTTP transfer. Defaults to 15000 (15 seconds).

Declared In

FM.h

– setUrl:

Sets the target URL for the HTTP request.

- (void)setUrl:(NSString *)value

Discussion

Sets the target URL for the HTTP request.

Declared In

FM.h

– textContent

Gets the text content to transfer over HTTP.

- (NSString *)textContent

Discussion

Gets the text content to transfer over HTTP.

Declared In

FM.h

– timeout

Gets the number of milliseconds to wait before timing out the HTTP transfer. Defaults to 15000 (15 seconds).

- (int)timeout

Discussion

Gets the number of milliseconds to wait before timing out the HTTP transfer. Defaults to 15000 (15 seconds).

Declared In

FM.h

– url

Gets the target URL for the HTTP request.

- (NSString *)url

Discussion

Gets the target URL for the HTTP request.

Declared In

FM.h