FeedKit icon indicating copy to clipboard operation
FeedKit copied to clipboard

Feature request: access to HTTPURLResponse for downloaded feed

Open algrid opened this issue 3 years ago • 2 comments

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.

algrid avatar Oct 14 '20 18:10 algrid

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

JoaoCPires avatar Mar 28 '21 16:03 JoaoCPires

@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.

JoaoCPires avatar Apr 06 '21 03:04 JoaoCPires

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

nmdias avatar Dec 08 '22 01:12 nmdias