Skip to content

addLinkHeader #674

@gregw

Description

@gregw

From #672:

To assist with early hints, should we add a response method like:

     void addLinkHeader(String uri, String relationship, String... attributeValuePairs);

So this could be used like:

    response.addLinkHeader("http://example.com/TheBook/chapter2", "previous", "title", "previous chapter"
    response.addLinkHeader("/", "http://example.net/foo");
    response.addLinkHeader("/terms", "copyright", "anchor","#foo");

and would generate the following headers:

   Link: <http://example.com/TheBook/chapter2>; rel="previous"; title="previous chapter"
   Link: </>; rel="http://example.net/foo"
   Link: </terms>; rel="copyright"; anchor="#foo"

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions