{"action":"created","issue":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/97","labels_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/97/comments","events_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/97/events","html_url":"https://github.com/onevcat/Kingfisher/issues/97","id":101387153,"number":97,"title":"Passing in a NSURLSession","user":{"login":"RuiAAPeres","id":949286,"avatar_url":"https://avatars.githubusercontent.com/u/949286?v=3","gravatar_id":"","url":"https://api.github.com/users/RuiAAPeres","html_url":"https://github.com/RuiAAPeres","followers_url":"https://api.github.com/users/RuiAAPeres/followers","following_url":"https://api.github.com/users/RuiAAPeres/following{/other_user}","gists_url":"https://api.github.com/users/RuiAAPeres/gists{/gist_id}","starred_url":"https://api.github.com/users/RuiAAPeres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuiAAPeres/subscriptions","organizations_url":"https://api.github.com/users/RuiAAPeres/orgs","repos_url":"https://api.github.com/users/RuiAAPeres/repos","events_url":"https://api.github.com/users/RuiAAPeres/events{/privacy}","received_events_url":"https://api.github.com/users/RuiAAPeres/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-17T10:09:33Z","updated_at":"2015-08-17T10:38:52Z","closed_at":null,"body":"I would be great if the `ImageDownloader` would have a constructor that would receive a `NSURLSession` as a parameter. This way we could make use of something like [DVR](https://github.com/venmo/DVR) for stub images downloads. :+1: "},"comment":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/comments/131773415","html_url":"https://github.com/onevcat/Kingfisher/issues/97#issuecomment-131773415","issue_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/97","id":131773415,"user":{"login":"dmcrodrigues","id":1098602,"avatar_url":"https://avatars.githubusercontent.com/u/1098602?v=3","gravatar_id":"","url":"https://api.github.com/users/dmcrodrigues","html_url":"https://github.com/dmcrodrigues","followers_url":"https://api.github.com/users/dmcrodrigues/followers","following_url":"https://api.github.com/users/dmcrodrigues/following{/other_user}","gists_url":"https://api.github.com/users/dmcrodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/dmcrodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmcrodrigues/subscriptions","organizations_url":"https://api.github.com/users/dmcrodrigues/orgs","repos_url":"https://api.github.com/users/dmcrodrigues/repos","events_url":"https://api.github.com/users/dmcrodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/dmcrodrigues/received_events","type":"User","site_admin":false},"created_at":"2015-08-17T10:38:52Z","updated_at":"2015-08-17T10:38:52Z","body":"Yeah that flexibility would be great for testing but also to provide a customised `NSURLSessionConfiguration`, e.g. request timeout interval, maximum connections per host, shared container identifier. :+1: "}}