Changelog
- Proof the library works with Alamofire
- Add support for dataTask(with:completionHandler:), both URLRequest and URL verisons.
- Support for AFNetworking 3
- Swift 3
- Move to cocoapods 1.0 format (thanks @csknns)
- Return a handle from single mocks to let clients validate they have been consumed
- Allow block parameter to return networking failures as well as server responses
- Remove Evaluator struct from NSURLSession
- Added a block parameter when mocking to use matching components in the URL in the response body
- Add ability to evaluate whether a mock response has been sent or not
- Single mocks now have priority over permanent mocks
- Tweak to return values of RequestEvaluator to be explicit about intent
- Automatically start mocking when the requestEvaluator is set
- Move state setting in task to after delegate callback
- Add ability to block unmocked requests
- Remove NSURLConnection mocking ability
- Add format specifier to Logging
- Add mock response (status and headers), thanks @kerrmarin
- Internal tweaks from peer review
- Fix for logging in NSURLSession when mocking my URL instead of request
- Added log level to NSURLSession
- Added consistent logging pattern
- Mock single requests to NSURLConnection
- Add delay to mocked responses on NSURLConnection
- Mock NSURLSession simple init methods