Leverage URLCache as stub storage
q231950 opened this issue · comments
The Stubborn Network should be treated as a cache and nothing more. So the natural solution should be to take advantage of URLCache
. Subclassing URLSession
is the easy and hands on solution but it should be possible and also the cleaner solution to leverage URLCache
’s abilities to get the same results.
This can be closed since the url cache will most likely only work for GET
requests but not for http methods like POST
as @danyowdee remarked during yesterdays CocoaHeads meetup.