Inherits from NSInputStream
Conforms to RKRequestSerializable
Declared in RKParams.h
RKParams.m

Overview

Provides support for creating multi-part request body for RKRequest objects.

Tasks

Other Methods

Other Methods

Other Methods

Other Methods

  • – HTTPBodyStream

    Returns an input stream for reading the serialization as a stream. Used to provide support for handling large HTTP payloads.

Class Methods

params

Returns an empty params object ready for population

+ (RKParams *)params

Declared In

RKParams.h

paramsWithDictionary:

Initialize a params object from a dictionary of key/value pairs

+ (RKParams *)paramsWithDictionary:(NSDictionary *)dictionary

Declared In

RKParams.h

Instance Methods

HTTPBodyStream

Returns an input stream for reading the serialization as a stream. Used to provide support for handling large HTTP payloads.

- (NSInputStream *)HTTPBodyStream

Declared In

RKRequestSerializable.h

HTTPHeaderValueForContentLength

Returns the length of the HTTP Content-Length header

- (NSUInteger)HTTPHeaderValueForContentLength

Declared In

RKRequestSerializable.h

HTTPHeaderValueForContentType

The value of the Content-Type header for the HTTP Body representation of the serialization

- (NSString *)HTTPHeaderValueForContentType

Declared In

RKRequestSerializable.h

initWithDictionary:

Initalize a params object from a dictionary of key/value pairs

- (RKParams *)initWithDictionary:(NSDictionary *)dictionary

Declared In

RKParams.h

setData:MIMEType:fileName:forParam:DEPRECATED_ATTRIBUTE:

Sets the value for a named parameter to a data object with the specified MIME Type and attachment file name

- (RKParamsAttachment *)setData:(NSData *)data MIMEType:(NSString *)MIMEType fileName:(NSString *)fileName forParam:(NSString *)param DEPRECATED_ATTRIBUTE

Discussion

@deprecated Set the MIMEType and fileName on the returned RKParamsAttachment instead

Declared In

RKParams.h

setData:MIMEType:forParam:

Sets the value for a named parameter to an NSData object with a specific MIME type

- (RKParamsAttachment *)setData:(NSData *)data MIMEType:(NSString *)MIMEType forParam:(NSString *)param

Declared In

RKParams.h

setData:forParam:

Sets the value to the data object for a named parameter. A default MIME type of application/octet-stream will be used.

- (RKParamsAttachment *)setData:(NSData *)data forParam:(NSString *)param

Declared In

RKParams.h

setFile:MIMEType:fileName:forParam:DEPRECATED_ATTRIBUTE:

Sets the value for a named parameter to the data contained in a file at the given path with the specified MIME Type and attachment file name

- (RKParamsAttachment *)setFile:(NSString *)filePath MIMEType:(NSString *)MIMEType fileName:(NSString *)fileName forParam:(NSString *)param DEPRECATED_ATTRIBUTE

Discussion

@deprecated Set the MIMEType and fileName on the returned RKParamsAttachment instead

Declared In

RKParams.h

setFile:forParam:

Sets the value for a named parameter to the data contained in a file at the given path

- (RKParamsAttachment *)setFile:(NSString *)filePath forParam:(NSString *)param

Declared In

RKParams.h

setValue:forParam:

Sets the value for a named parameter

- (RKParamsAttachment *)setValue:(id<NSObject>)value forParam:(NSString *)param

Declared In

RKParams.h