Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 286 lines (223 sloc) 15.564 kB
ebb6eb2 @mattt You know what's an even _better name? AFHTTPClient. Boom.
mattt authored
1 // AFHTTPClient.h
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
2 //
3 // Copyright (c) 2011 Gowalla (http://gowalla.com/)
4 //
5 // Permission is hereby granted, free of charge, to any person obtaining a copy
6 // of this software and associated documentation files (the "Software"), to deal
7 // in the Software without restriction, including without limitation the rights
8 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 // copies of the Software, and to permit persons to whom the Software is
10 // furnished to do so, subject to the following conditions:
11 //
12 // The above copyright notice and this permission notice shall be included in
13 // all copies or substantial portions of the Software.
14 //
15 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 // THE SOFTWARE.
22
23 #import <Foundation/Foundation.h>
d87b783 @mattt Porting over changes for 0.3.0 release
mattt authored
24 #import "AFHTTPRequestOperation.h"
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
25
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
26 @protocol AFMultipartFormDataProxy;
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
27
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
28 /**
29 `AFHTTPClient` objects encapsulates the common patterns of communicating with an application, webservice, or API. It encapsulates persistent information, like base URL, authorization credentials, and HTTP headers, and uses them to construct and manage the execution of HTTP request operations.
30 */
ebb6eb2 @mattt You know what's an even _better name? AFHTTPClient. Boom.
mattt authored
31 @interface AFHTTPClient : NSObject {
2b9a66d @mattt Changing AFRestClient +baseURL to a @property
mattt authored
32 @private
33 NSURL *_baseURL;
ca02e02 @mattt Removing categories on NSData and NSString, moving them to static fun…
mattt authored
34 NSStringEncoding _stringEncoding;
d87b783 @mattt Porting over changes for 0.3.0 release
mattt authored
35 NSMutableDictionary *_defaultHeaders;
36 NSOperationQueue *_operationQueue;
37 }
38
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
39 /**
4f070b2 @teeman file data upload fix
teeman authored
40 The url used as the base for paths specified in methods such as `getPath:parameteres:success:failure`
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
41 */
42 @property (readonly, nonatomic, retain) NSURL *baseURL;
43
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
44 /**
45 The string encoding used in constructing url requests. This is `NSUTF8StringEncoding` by default.
46 */
ca02e02 @mattt Removing categories on NSData and NSString, moving them to static fun…
mattt authored
47 @property (nonatomic, assign) NSStringEncoding stringEncoding;
48
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
49 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
50 The operation queue which manages operations enqueued by the HTTP client.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
51 */
4f070b2 @teeman file data upload fix
teeman authored
52 @property (readonly, nonatomic, retain) NSOperationQueue *operationQueue;;
ca02e02 @mattt Removing categories on NSData and NSString, moving them to static fun…
mattt authored
53
2dd6821 @mattt Adding +clientWithBaseURL:
mattt authored
54 ///---------------------------------------------
55 /// @name Creating and Initializing HTTP Clients
56 ///---------------------------------------------
57
58 /**
59 Creates and initializes an `AFHTTPClient` object with the specified base URL.
60
61 @param url The base URL for the HTTP client. This argument must not be nil.
62
63 @return The newly-initialized HTTP client
64 */
65 + (AFHTTPClient *)clientWithBaseURL:(NSURL *)url;
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
66
67 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
68 Initializes an `AFHTTPClient` object with the specified base URL.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
69
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
70 @param url The base URL for the HTTP client. This argument must not be nil.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
71
2dd6821 @mattt Adding +clientWithBaseURL:
mattt authored
72 @discussion This is the designated initializer for `AFHTTPClient`
73
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
74 @return The newly-initialized HTTP client
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
75 */
2b9a66d @mattt Changing AFRestClient +baseURL to a @property
mattt authored
76 - (id)initWithBaseURL:(NSURL *)url;
77
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
78 ///----------------------------------
79 /// @name Managing HTTP Header Values
80 ///----------------------------------
81
82 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
83 Returns the value for the HTTP headers set in request objects created by the HTTP client
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
84
85 @param header The HTTP header to return the default value for
86
87 @return The default value for the HTTP header, or `nil` if unspecified
88 */
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
89 - (NSString *)defaultValueForHeader:(NSString *)header;
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
90
91 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
92 Sets the value for the HTTP headers set in request objects made by the HTTP client. If `nil`, removes the existing value for that header.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
93
94 @param header The HTTP header to set a default value for
95 @param value The value set as default for the specified header, or `nil
96 */
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
97 - (void)setDefaultHeader:(NSString *)header value:(NSString *)value;
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
98
99 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
100 Sets the "Authorization" HTTP header set in request objects made by the HTTP client to a basic authentication value with Base64-encoded username and password. This overwrites any existing value for this header.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
101
102 @param username The HTTP basic auth username
103 @param password The HTTP basic auth password
104 */
f8d3550 @mattt Experimental implementation of HTTP Basic auth helper in AFRestClient
mattt authored
105 - (void)setAuthorizationHeaderWithUsername:(NSString *)username password:(NSString *)password;
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
106
107 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
108 Sets the "Authorization" HTTP header set in request objects made by the HTTP client to a token-based authentication value, such as an OAuth access token. This overwrites any existing value for this header.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
109
110 @param token The authentication token
111 */
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
112 - (void)setAuthorizationHeaderWithToken:(NSString *)token;
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
113
114 /**
115 Clears any existing value for the "Authorization" HTTP header.
116 */
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
117 - (void)clearAuthorizationHeader;
118
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
119 ///-------------------------------
120 /// @name Creating Request Objects
121 ///-------------------------------
122
123 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
124 Creates an `NSMutableURLRequest` object with the specified HTTP method and path. If the HTTP method is `GET`, the parameters will be used to construct a url-encoded query string that is appended to the request's URL. If `POST`, `PUT`, or `DELETE`, the parameters will be encoded into a `application/x-www-form-urlencoded` HTTP body.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
125
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
126 @param method The HTTP method for the request, such as `GET`, `POST`, `PUT`, or `DELETE`.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
127 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
128 @param parameters The parameters to be either set as a query string for `GET` requests, or the request HTTP body.
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
129
130 @return An `NSMutableURLRequest` object
131 */
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
132 - (NSMutableURLRequest *)requestWithMethod:(NSString *)method
133 path:(NSString *)path parameters:(NSDictionary *)parameters;
d87b783 @mattt Porting over changes for 0.3.0 release
mattt authored
134
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
135 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
136 Creates an `NSMutableURLRequest` object with the specified HTTP method and path, and constructs a `multipart/form-data` HTTP body, using the specified parameters and multipart form data block.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
137
138 @param method The HTTP method for the request. Must be either `POST`, `PUT`, or `DELETE`.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
139 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
140 @param parameters The parameters to be encoded and set in the request HTTP body.
141 @param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormDataProxy` protocol. This can be used to upload files, encode HTTP body as JSON or XML, or specify multiple values for the same parameter, as one might for array values.
142
143 @see AFMultipartFormDataProxy
144
145 @return An `NSMutableURLRequest` object
146 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
147 - (NSMutableURLRequest *)multipartFormRequestWithMethod:(NSString *)method
148 path:(NSString *)path
149 parameters:(NSDictionary *)parameters
150 constructingBodyWithBlock:(void (^)(id <AFMultipartFormDataProxy>formData))block;
151
152
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
153 ///--------------------------------
154 /// @name Enqueuing HTTP Operations
155 ///--------------------------------
72d9a24 @mattt Adding AFRestClient -enqueueHTTPOperation:
mattt authored
156
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
157 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
158 Creates and enqueues an `AFHTTPRequestOperation` to the HTTP client's operation queue.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
159
160 @param request The request object to be loaded asynchronously during execution of the operation.
7a2cad0 @mattt Minor revisions to documentation, mostly around style and conventions
mattt authored
161 @param success A block object to be executed when the request operation finishes successfully, with a status code in the 2xx range, and with an acceptable content type (e.g. `application/json`). This block has no return value and takes a single argument, which is the response object created from the response data of request.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
162 @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data as JSON. This block has no return value and takes a single argument, which is the `NSError` object describing the network or parsing error that occurred.
163 */
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
164 - (void)enqueueHTTPOperationWithRequest:(NSURLRequest *)request
165 success:(void (^)(id response))success
166 failure:(void (^)(NSError *error))failure;
d87b783 @mattt Porting over changes for 0.3.0 release
mattt authored
167
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
168 ///---------------------------------
169 /// @name Cancelling HTTP Operations
170 ///---------------------------------
171
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
172 /**
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
173 Cancels all operations in the HTTP client's operation queue that match the specified HTTP method and URL.
c0c79a7 @mattt Further additions to AFRestClient documentation
mattt authored
174
175 @param method The HTTP method to match for the cancelled requests, such as `GET`, `POST`, `PUT`, or `DELETE`.
176 @param url The URL to match for the cancelled requests.
177 */
178 - (void)cancelHTTPOperationsWithMethod:(NSString *)method andURL:(NSURL *)url;
4d5ae42 @mattt Adding AFRestClient -cancelHTTPOperationsWithRequest: and -cancelAllH…
mattt authored
179
2f7f527 @mattt First (half of a) draft of AFRestClient documentation
mattt authored
180 ///---------------------------
181 /// @name Making HTTP Requests
182 ///---------------------------
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
183
184 /**
185 Creates an `AFHTTPRequestOperation` with a `GET` request, and enqueues it to the HTTP client's operation queue.
186
187 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
188 @param parameters The parameters to be encoded and appended as the query string for the request URL.
7a2cad0 @mattt Minor revisions to documentation, mostly around style and conventions
mattt authored
189 @param success A block object to be executed when the request operation finishes successfully, with a status code in the 2xx range, and with an acceptable content type (e.g. `application/json`). This block has no return value and takes a single argument, which is the response object created from the response data of request.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
190 @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data as JSON. This block has no return value and takes a single argument, which is the `NSError` object describing the network or parsing error that occurred.
191 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
192 - (void)getPath:(NSString *)path
193 parameters:(NSDictionary *)parameters
194 success:(void (^)(id response))success
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
195 failure:(void (^)(NSError *error))failure;
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
196
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
197 /**
198 Creates an `AFHTTPRequestOperation` with a `POST` request, and enqueues it to the HTTP client's operation queue.
199
200 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
201 @param parameters The parameters to be encoded and set in the request HTTP body.
7a2cad0 @mattt Minor revisions to documentation, mostly around style and conventions
mattt authored
202 @param success A block object to be executed when the request operation finishes successfully, with a status code in the 2xx range, and with an acceptable content type (e.g. `application/json`). This block has no return value and takes a single argument, which is the response object created from the response data of request.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
203 @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data as JSON. This block has no return value and takes a single argument, which is the `NSError` object describing the network or parsing error that occurred.
204 */
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
205 - (void)postPath:(NSString *)path
206 parameters:(NSDictionary *)parameters
207 success:(void (^)(id response))success
208 failure:(void (^)(NSError *error))failure;
209
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
210 /**
211 Creates an `AFHTTPRequestOperation` with a `PUT` request, and enqueues it to the HTTP client's operation queue.
212
213 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
214 @param parameters The parameters to be encoded and set in the request HTTP body.
7a2cad0 @mattt Minor revisions to documentation, mostly around style and conventions
mattt authored
215 @param success A block object to be executed when the request operation finishes successfully, with a status code in the 2xx range, and with an acceptable content type (e.g. `application/json`). This block has no return value and takes a single argument, which is the response object created from the response data of request.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
216 @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data as JSON. This block has no return value and takes a single argument, which is the `NSError` object describing the network or parsing error that occurred.
217 */
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
218 - (void)putPath:(NSString *)path
219 parameters:(NSDictionary *)parameters
220 success:(void (^)(id response))success
221 failure:(void (^)(NSError *error))failure;
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
222
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
223 /**
224 Creates an `AFHTTPRequestOperation` with a `DELETE` request, and enqueues it to the HTTP client's operation queue.
225
226 @param path The path to be appended to the HTTP client's base URL and used as the request URL.
227 @param parameters The parameters to be encoded and set in the request HTTP body.
7a2cad0 @mattt Minor revisions to documentation, mostly around style and conventions
mattt authored
228 @param success A block object to be executed when the request operation finishes successfully, with a status code in the 2xx range, and with an acceptable content type (e.g. `application/json`). This block has no return value and takes a single argument, which is the response object created from the response data of request.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
229 @param failure A block object to be executed when the request operation finishes unsuccessfully, or that finishes successfully, but encountered an error while parsing the resonse data as JSON. This block has no return value and takes a single argument, which is the `NSError` object describing the network or parsing error that occurred.
230 */
8833578 @mattt Adding NSMutableURLRequest category with -setHTTPBodyWithData:mimeTyp…
mattt authored
231 - (void)deletePath:(NSString *)path
232 parameters:(NSDictionary *)parameters
233 success:(void (^)(id response))success
234 failure:(void (^)(NSError *error))failure;
5b27bf6 @mattt Extracting core aspects of AFGowallaAPI into AFRestClient
mattt authored
235 @end
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
236
237 #pragma mark -
238
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
239 /**
240 The `AFMultipartFormDataProxy` protocol defines the methods supported by the parameter in the block argument of `multipartFormRequestWithMethod:path:parameters:constructingBodyWithBlock:`.
241 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
242 @protocol AFMultipartFormDataProxy <NSObject>
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
243
244 /**
245 Appends HTTP headers, followed by the encoded data and the multipart form boundary.
246
247 @param headers The HTTP headers to be appended to the form data.
248 @param body The data to be encoded and appended to the form data.
249 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
250 - (void)appendPartWithHeaders:(NSDictionary *)headers body:(NSData *)body;
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
251
252 /**
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
253 Appends the HTTP headers `Content-Disposition: form-data; name=#{name}"` and, if mimeType is specified, `Content-Type: #{mimeType}`, followed by the encoded data and the multipart form boundary.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
254
255 @param data The data to be encoded and appended to the form data.
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
256 @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. If `nil`, the `Content-Type` header will be omitted.
257 @param name The name to be associated with the specified data. This parameter must not be `nil`.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
258 */
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
259 - (void)appendPartWithFormData:(NSData *)data mimeType:(NSString *)mimeType name:(NSString *)name;
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
260
261 /**
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
262 Appends the HTTP header `Content-Disposition: file; filename=#{filename}"` and `Content-Type: #{mimeType}`, followed by the encoded file data and the multipart form boundary.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
263
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
264 @param fileURL The URL for the local file to have its contents appended to the form data. This parameter must not be `nil`.
265 @param mimeType The MIME type of the specified data. (For example, the MIME type for a JPEG image is image/jpeg.) For a list of valid MIME types, see http://www.iana.org/assignments/media-types/. This parameter must not be `nil`.
266 @param fileName The filename to be associated with the file contents. This parameter must not be `nil`.
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
267 */
b621ad0 @mattt Changing multipart form data object to be subclass of NSMutableData
mattt authored
268 - (void)appendPartWithFile:(NSURL *)fileURL mimeType:(NSString *)mimeType fileName:(NSString *)fileName;
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
269
4f070b2 @teeman file data upload fix
teeman authored
270 - (void)appendPartWithFileData:(NSData *)data mimeType:(NSString *)mimeType name:(NSString *)name;
271
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
272 /**
273 Appends encoded data to the form data.
274
275 @param data The data to be encoded and appended to the form data.
276 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
277 - (void)appendData:(NSData *)data;
e21a7b5 @mattt Updating and completing documentation for AFHTTPClient
mattt authored
278
279 /**
280 Appends a string to the form data.
281
282 @param string The string to be encoded and appended to the form data.
283 */
8b86051 @mattt Replacing NSMutableURLRequest category method with more flexible cons…
mattt authored
284 - (void)appendString:(NSString *)string;
285 @end
Something went wrong with that request. Please try again.