Closed TaborKelly closed 5 years ago
Do you require it to not be a shared session? We could allow you to provide your own session so you can set configuration values if you need.
I'm using SwiftyRequest for testing an existing Kitura API that is designed for access by vanilla JavaScript (and C). For some of my test cases I need to be able to reset the cookie store. After further investigation, what I really need to be able to do is reset()
the URLSession
that I am using as finishTasksAndInvalidate()
doesn't seem to be enough.
Which is a long way of saying yes, if I could provide my own URLSession
that would be very helpful.
@TaborKelly Can you just confirm that pr #66 making the URLSession public would fix your issue?
Closing since the URLSession is now public. This will give you access to the session change it or replace it and has been released in version 2.1.0
Sorry for the late reply. Yes, that looks great!
There is no way to disable the shared URLSession: