Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide access to the default redirect handler #5338

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Oct 1, 2024

Motivation:

This is useful for building redirect handlers
for clients that need to delegate to the default behavior. In Quarkus we will leverage this to get rid of the deprecated (and since removed) calls to redirectHandler

* This is useful for building redirect handlers that need to delegate to the default behavior.
*/
@GenIgnore
default Function<HttpClientResponse, Future<RequestOptions>> defaultRedirectHandler() {
Copy link
Member

Choose a reason for hiding this comment

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

rather an instance of on HttpClientAgent instead, in Vert.x 5, HttpClient is the API for interacting with an HTTP server whereas HttpClientAgent is the client.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good to know! PR updated

This is useful for building redirect handlers
for clients that need to delegate to the default behavior.
In Quarkus we will leverage this to get rid of the deprecated
(and since removed) calls to redirectHandler
@geoand geoand force-pushed the httpclient-default-redirect branch from a4cbd17 to 913ef15 Compare October 1, 2024 15:14
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.

2 participants