Skip to content

api: Add support for enabling Trailers in HTTP/1.1#2487

Merged
zhaohuabing merged 2 commits intoenvoyproxy:mainfrom
liorokman:ctp-trailers-api
Jan 24, 2024
Merged

api: Add support for enabling Trailers in HTTP/1.1#2487
zhaohuabing merged 2 commits intoenvoyproxy:mainfrom
liorokman:ctp-trailers-api

Conversation

@liorokman
Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR adds support in ClientTrafficPolicy for enabling HTTP/1 trailers.

If enabled, it will translate to the enable_trailers attribute in Envoy's HTTP1ProtocolOptions configuration.

Signed-off-by: Lior Okman <lior.okman@sap.com>
@liorokman liorokman requested a review from a team as a code owner January 23, 2024 10:59
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 23, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (95f4c10) 64.63% compared to head (7f07e0d) 64.68%.
Report is 2 commits behind head on main.

Files Patch % Lines
internal/provider/kubernetes/routes.go 66.66% 5 Missing ⚠️
internal/provider/kubernetes/controller.go 33.33% 4 Missing ⚠️
internal/provider/kubernetes/filters.go 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2487      +/-   ##
==========================================
+ Coverage   64.63%   64.68%   +0.05%     
==========================================
  Files         115      115              
  Lines       17467    17472       +5     
==========================================
+ Hits        11290    11302      +12     
+ Misses       5454     5448       -6     
+ Partials      723      722       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

type HTTP3Settings struct {
}

// HTTP1Settings provides HTTP/1 configuration on the listener.
Copy link
Copy Markdown
Contributor

@arkodg arkodg Jan 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

brought up this API in the community meeting today with @guydc
HTTP1 can become the home for other fields such as

  • PreserveCasing
  • EnableHTTP1.0

so this approach SGTM

Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks !

Copy link
Copy Markdown
Member

@zhaohuabing zhaohuabing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants