venmo / DVR

Network testing for Swift
http://blog.soff.es/network-testing-in-swift-with-dvr
MIT License
651 stars 86 forks source link

Added a way to provide the real NSURLSession to be used #3

Closed czechboy0 closed 9 years ago

czechboy0 commented 9 years ago

Added a way to provide the real session to be used when an appropriate Casette is not yet present. This is useful when e.g. talking to servers that require the client responds to an authentication challenge, which NSURLSession.defaultSession() doesn't. Now you have a way to pass in your own session which responds e.g. with the right credentials, so that the first recording can go through.

Btw, great work on this framework! I really like the paradigm and we're now starting to test APIs this way in our XcodeServerSDK project. Thanks for putting this out here.

soffes commented 9 years ago

Nice! I was actually just thinking about this. Would you mind renaming it to backingSession?

czechboy0 commented 9 years ago

Done. Yeah I encountered this when recording responses from https servers with self-signed certificates.

soffes commented 9 years ago

:heart: