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

Introduce defaultHttp(s)Port for MultiAddressHttpClientBuilder #2703

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

daschl
Copy link
Contributor

@daschl daschl commented Sep 21, 2023

Motivation

At the moment, if no port number is explicitly provided, the default HTTP and HTTPS ports are used (80 and 443). In some environments it can be useful (i.e. if a client is always talking to a high port number) to not have to specify it on every request.

Modifications

This changeset introduces two new builder options to allow customizing the defaultHttpPort as well as the defaultHttpsPort and applying it if no explicit port is provided on the request itself.

Result

It is now possible to not specify the port number on every request if they diverge from the default 80 or 443 port numbers.

@daschl daschl self-assigned this Sep 21, 2023
Motivation
----------
At the moment, if no port number is explicitly provided, the
default HTTP and HTTPS ports are used (80 and 443). In some
environments it can be useful (i.e. if a client is always talking
to a high port number) to not have to specify it on every
request.

Modifications
-------------
This changeset introduces two new builder options to allow customizing
the defaultHttpPort as well as the defaultHttpsPort and applying it
if no explicit port is provided on the request itself.

Result
------
It is now possible to not specify the port number on every request
if they diverge from the default 80 or 443 port numbers.
@daschl daschl merged commit 9bc9746 into apple:main Sep 22, 2023
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