Skip to content

API compatibility between Jetty 11 and 12: org.eclipse.jetty.server.Request/Response#getHeaders() #8938

@jhoeller

Description

@jhoeller

For Spring Framework 6.0's core Jetty integration in WebFlux, we interact with org.eclipse.jetty.server.Request#getHttpFields() and org.eclipse.jetty.server.Response#getHttpFields() in Jetty 11 which changed to #getHeaders() in Jetty 12.

Trying to avoid reflection for supporting both versions of Jetty, is there any chance you could keep providing #getHttpFields() in Jetty 12 (in deprecated form) or alternatively - even preferably? - introduce #getHeaders() in a Jetty 11.0.x release as well, allowing integrators like Spring to have a single method to call between Jetty 11.0.x and 12 there?

Metadata

Metadata

Assignees

Labels

EnhancementStaleFor auto-closed stale issues and pull requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions