-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parse link headers (rfc5988) #2948
Comments
The attached issue has no design for the API, only many good wishes. Would you elaborate your vision? |
I'm not too deep into aiohttp - I was just using it for a small app and found out about the missing link header parsing; so I don't have clear real vision. The API I am familiar with is the http://docs.python-requests.org/en/master/user/advanced/#link-headers I think we need to make two calls here:
|
Well, supporting |
Any volunteer? |
I'll do it |
Fixed by #2955 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
See psf/requests#711 for context.
It would be great if aiohttp could parse link headers helping e.g. with pagination.
At the moment the
ClientResponse
has aheaders
attribute from which we can get the link header:But it's of type
str
and not parsed. To use the url e.g. in thenext
rel (for pagination) users currently have to parse the link header string manually pulling out the url.The text was updated successfully, but these errors were encountered: