-
- Notifications
You must be signed in to change notification settings - Fork 21.2k
Open
Labels
Description
With v4 links()
function it is not possible to set the type
attribute, inter alia.
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' } ]);