Skip to content

Alternative services HTTP client support #5840

@vietj

Description

@vietj

Describe the feature

Implement a reasonable support for HTTP alternative services.

Motivation

One possible HTTP/3 discovery mechanism is through Alternative Services, which Vert.x HTTP client do not support

Implementation

Vert.x HTTP client associates an origin like concept (as in Web Origin Concept) to a shared client pool to the origin server.

Vert.x 5 introduced an address resolver, proper support of origin to socket address can be implemented with a custom resolver.

Such resolver can resolve an origin (which can be an address) to a server origin endpoint which can comprehend the first HTTP service discovered by DNS and the alternative services discovered via the alternative services mechanism.

The resolver already implements time based eviction and invalidation which are necessary to support this.

Notes

This goes beyond HTTP/3 since alternative services work for HTTP/1.1 and HTTP/2 as well.

Contribution

No response

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions