mrkkrp / req

An HTTP client library
Other
337 stars 40 forks source link

Add responseLinks #140

Closed chreekat closed 8 months ago

chreekat commented 1 year ago
-- | Look up URIs with the given attribute from a Link header.
--
-- Returns 'URI's because we don't know the scheme in advance.
--
-- >>> responseLinks "rel" "next" response :: Maybe [URI]
-- Just [...]

Here's a starting point, but I have some questions:

  1. Should I do something different about the license, or move it somewhere else, or yolo it?
  2. Should Network.Http.Req.Links be in other-modules?
  3. Should I add @since and some entry in the changelog? (But then, which version should I use?)
chreekat commented 3 months ago

I think I might have closed this on accident? It was still something I was planning on doing at some point. I'll reopen.

Oh, weird, I can't. I seem to have overwritten my changes with a force push somehow. I guess that auto-closed the PR. Oops. I guess I'll fix that.

chreekat commented 3 months ago

Ah, I moved it to a topic branch. Looks like I have to open a new PR.