Adding section about execution time and memory constraints of multipart form data construction
This commit is contained in:
parent
a5b33d573a
commit
bb7b48e14e
1 changed files with 2 additions and 0 deletions
|
|
@ -251,6 +251,8 @@ extern NSString * AFQueryStringFromParametersWithEncoding(NSDictionary *paramete
|
|||
@param parameters The parameters to be encoded and set in the request HTTP body.
|
||||
@param block A block that takes a single argument and appends data to the HTTP body. The block argument is an object adopting the `AFMultipartFormData` 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.
|
||||
|
||||
@discussion The multipart form data is constructed synchronously in the specified block, so in cases where large amounts of data are being added to the request, you should consider performing this method in the background. Likewise, the form data is constructed in-memory, so it may be advantageous to instead write parts of the form data to a file and stream the request body using the `HTTPBodyStream` property of `NSURLRequest`.
|
||||
|
||||
@warning An exception will be raised if the specified method is not `POST`, `PUT` or `DELETE`.
|
||||
|
||||
@return An `NSMutableURLRequest` object
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue