I just switched over to using MKNetworkKit and I'm confused whether I should create one MKNetworkEngine object at App launch and use that whenever I want a net connection, or if I should be creating a new one each time?
If I needed to create just one and use it throughout the lifetime of the App, I would have assumed MKNetworkKit would create a singleton, but it doesn't seem to (not that I can see).
On the other hand, it seems cumbersome to alloc/init MKNetworkEngine every time I want to do a simple GET request.
Something seems amiss, so I'm wondering it I'm using it correctly.
Etienne678 is right. You should create an engine for every webserver and set the global headers (like gzip) and others required by that server on the engine.
When you queue an operation, to an engine these headers are automatically appended.