I am curious if gin does have support for early hints?
What have I tried so far?
- Since Early Hints are replacing HTTP/2 Push, I tried to go with the example of HTTP/2 Push, but this does not send a 103 response with the link headers.
- I tried to just set the link header and hoped that gin automatically converts it to an early hint. But it did not. This was the code I used to set the header:
c.Writer.Header().Set("link", "</app.min.css>; as=style; rel=preload")
Both tries did not result in gin sending 103 responses. So I am curious if gin at all is able to send 103 responses (aka. Early hints), or not. A quick research showed me that golang itself is capable of sending Early Hints.
Does anyone have a clue on how to send Early hints? :)
Thanks!
Comment From: pscheid92
I think this is a duplicate of #3289.