We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
rel
With v4 links() function it is not possible to set the type attribute, inter alia.
links()
type
I propose that an interface variant is added where the function takes an array of objects, e.g.:
res.links([ { href: 'http://api.example.com/users?page=2', rel: 'next', title: 'next chapter', type: 'text/plain;charset=UTF-8' }, { href: 'http://api.example.com/users?page=5', rel: 'last', title: 'the grand finale', type: 'video/webm' } ]);
The text was updated successfully, but these errors were encountered:
Sounds fine to me, we can certainly add something.
Sorry, something went wrong.
Fixed expressjs#2575 Modify the function res.links(), res.links() can…
d627aff
… accept an array as arguments
d311ac1
… accept an array as arguments(cancel the code format)
The following prs also attempt to address this: #2702 (which follows on from #2619).
#2702 incorporates some feedback from @dougwilson regarding validation of the provided keys which is not present in #2619 or #2575.
Successfully merging a pull request may close this issue.
With v4
links()
function it is not possible to set thetype
attribute, inter alia.I propose that an interface variant is added where the function takes an array of objects, e.g.:
The text was updated successfully, but these errors were encountered: