Skip to content

links() function insufficient for attributes other than rel #2575

@daxim

Description

@daxim

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' } ]);

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions