Closed AAAstorga closed 4 years ago
Thanks for the issue, in fact, receiving the header is currently not supported. It would probably be possible to overload the schedule(_:)
method to return both the result type and the header as [String: String]
. What do you think about that?
Sounds great to me!
This request talks to my server and there are some headers that are returned from the request that I want to have access to. I tried using a ServiceHook but I don't think I get the response headers. Ideally I can still have it decoded automatically to JSON as well. I am not sure how to proceed. Love the library!