gowalla/AFNetworking — Issue #100: Should AFHTTPClient allow full URL?
Author: iwat
Created: 2011-11-02 14:26:32+00:00
State: open

There are some essential features inside `AFHTTPClient` which cannot be done using `AFHTTPRequestOperation` alone.

For example:
* Default HTTP headers, this one is not accessible property.
* multipart/form-data request construction, because `AFMultipartFormData` (as a concrete class) is defined internally inside `AFHTTPClient`.

But there is one big problem with `AFHTTPClient`. It doesn't support creating request with full URL. Currently, it only supports creating request relative to baseURL. This does not allow me to create a multipart/form-data request to another server beside baseURL.

My workaround to those features is to use `[AFHTTPClient multipartFormRequestWithMethod:path:parameters:constructingBodyWithBlock:]` to create some valid request. Then use `[NSMutableURLRequest setURL:]` later to set whatever URL I want.

Should I keep doing this way? Or should I purpose a pull?