envoyproxy / envoyproxy/envoy

Early Hints support

Open
#25,881 6 comments 2 reactions 0 assignees View on GitHub
area/http help wanted investigate
Dominant language
C++
Stars
28.9k
Forks
5.6k
Avg merge
1d 20h
Merged PRs (30d)
437

Description

*Title*: Is Early Hints supported?

*Description*:

With Early Hints you can send multiple 103 responses to the client:

```
HTTP/1.1 103 Early Hints
Link: ; rel=preload; as=style

HTTP/1.1 103 Early Hints
Link: ; rel=preload; as=style
Link: ; rel=preload; as=script

HTTP/1.1 200 OK
Date: Fri, 26 May 2017 10:02:11 GMT
Content-Length: 1234
Content-Type: text/html; charset=utf-8
Link: ; rel=preload; as=style
Link: ; rel=preload; as=style
Link: ; rel=preload; as=script
```

Looks like that 103 headers is ignored, and response proxied only after 200 status.
Maybe this filter responsible for this behaviour - https://github.com/envoyproxy/envoy/blob/main/contrib/golang/filters/http/source/go/pkg/api/type.go#L38 (don't sure this code are relates to problem)

*Relevant Links*

Early Hints specification - https://httpwg.org/specs/rfc8297.html#early-hints

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.