Skip to content

Add possibility to send early hints headers #896

@jaysee

Description

@jaysee

It would be a great thing to be able to send HTTP 103 headers aka early hints using njs, actually, tryed using

r.headersOut['Link'] = '</style.css>; rel=preload; as=style';
r.headersOut['Link'] = '</script.js>; rel=preload; as=script';

r.return(103, "");

in js_content or when setting a variable with js_var...

but got error curl: (92) HTTP/2 stream 1 was not closed cleanly: PROTOCOL_ERROR (err 1)

makes sens, so needs internal support for this?

regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions