[aerogear-dev] [iOS] AGHttpClient protocol
Douglas Campos
qmx at qmx.me
Thu Dec 13 08:31:28 EST 2012
On Dec 13, 2012, at 9:19 AM, Matthias Wessendorf wrote:
> Hello,
>
> the CoreData plugin has its own HTTP client (since it's inheriting
> from AFIncrementalStore API), but the "public" API of that own client
> is similar to the one used on the Pipe IMPL:
>
> + (AGIncrementalStoreHttpClient *)clientFor:(NSURL *)baseURL;
>
> versus
>
> + (AGHttpClient *)clientFor:(NSURL *)url;
>
> Technically both HttpClients are extensions of the AFNetworking
> HTTPClient. In order to reuse the same public API for different http
> clients, I thought we could introduce a (public) protocol that allow
> it to write type-safe HTTP clients.
What would we gain from this apart of unifying the usage? Is there something else I'm not seeing?
>
> Any thoughts?
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
-- qmx
More information about the aerogear-dev
mailing list