nmdias / FeedKit

An RSS, Atom and JSON Feed parser written in Swift
MIT License
1.19k stars 173 forks source link

Feature request: access to HTTPURLResponse for downloaded feed #129

Closed algrid closed 1 year ago

algrid commented 3 years ago

Sometimes it can be useful to know what HTTP headers server has returned with the feed data. I'm particularly interested in "Etag" and "Last-Modified" headers. It would be nice to include this data into the result of parseAsync for parser instances initialized with feed URL.

JoaoCPires commented 3 years ago

+1 to this. Getting and even passing HTTP Headers would be a really good feature.

JoaoCPires commented 3 years ago

@algrid there's a workaround for this. The documentation on GitHub doesn't mention it, but the parser has a initialiser that takes Data.

You can just make your own network calls and parse the data afterwards.

Hope it helps.

nmdias commented 1 year ago

Such feature would probably be out of the scope of this framework. Thank you, @algrid and @JoaoCPires for helping out. Closing this for now.