2.0.0 — Simplified API
- Simplified API
- removed instance methods, no more public
sharedInstance
: directly call class methods on theOHHTTPStubs
class - The old and problematic
addRequestHandler:
method has been deprecated and should not be used anymore. UsestubRequestsPassingTest:withStubResponse:
instead, which is more efficient
- removed instance methods, no more public
- Added API documentation in the headers
- Remove all internal uses of Apple's private APIs
Be careful: if you forgot to remove your use of
OHHTTPStubs
and your stubs from the binary you sent to the AppStore, your app would have been rejected by Apple before 2.0.0, as it was using private API (which was a way to make sure not to forget to remove them), but now it would be accepted silently. So don't forget to remove your stubs andOHHTTPStubs
from your final binary!