{"action":"closed","issue":{"url":"https://api.github.com/repos/onevcat/Kingfisher/issues/453","repository_url":"https://api.github.com/repos/onevcat/Kingfisher","labels_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/453/labels{/name}","comments_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/453/comments","events_url":"https://api.github.com/repos/onevcat/Kingfisher/issues/453/events","html_url":"https://github.com/onevcat/Kingfisher/issues/453","id":178691823,"number":453,"title":"Modifying requests once","user":{"login":"adrianhr91","id":2922498,"avatar_url":"https://avatars.githubusercontent.com/u/2922498?v=3","gravatar_id":"","url":"https://api.github.com/users/adrianhr91","html_url":"https://github.com/adrianhr91","followers_url":"https://api.github.com/users/adrianhr91/followers","following_url":"https://api.github.com/users/adrianhr91/following{/other_user}","gists_url":"https://api.github.com/users/adrianhr91/gists{/gist_id}","starred_url":"https://api.github.com/users/adrianhr91/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adrianhr91/subscriptions","organizations_url":"https://api.github.com/users/adrianhr91/orgs","repos_url":"https://api.github.com/users/adrianhr91/repos","events_url":"https://api.github.com/users/adrianhr91/events{/privacy}","received_events_url":"https://api.github.com/users/adrianhr91/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T18:54:28Z","updated_at":"2016-09-22T21:53:55Z","closed_at":"2016-09-22T21:53:55Z","body":"In 2.x we I used `downloader.requestModifier` do add some additional headers to each request. Now that property has been removed and there are 2 contradicting alternatives. \r\n\r\n1. The wiki here on github says to pass a closure to `setImage`. I don't want to do this ideally as all requests would have the same headers added.\r\n2. In the code the `requestModifier` method is annotated and states \r\n\r\n> `requestModifier` is removed. Use 'urlRequest(for:byModifying:)' from the 'ImageDownloaderDelegate' instead\r\n\r\nHowever there's no such method in the delegate.\r\nIs there a way of achieving what I had on 2.x on 3.1.0?"}}
{"actor":{"display_login":"adrianhr91"}}