-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
HostHeaderHttpRequesterFilter
public (#2212)
Motivation: Users may have a need to set the `Host` header with a different value than they used to create a client. For these cases, it's convenient to reuse existing filter instead of writing their own. Modifications: - Move `HostHeaderHttpRequesterFilter` from `http-netty` to `http-utils` and make it `public`; - Disable `DefaultSingleAddressHttpClientBuilder.addHostHeaderFallbackFilter` when `HostHeaderHttpRequesterFilter` is added manually; - Move `NetUtils` from `http-api` to `utils-internal` module to share with other modules outside `http-api`, rename it to `NetworkUtils`; - Add `NetworkUtilsTests`; - Replace all usages of `io.netty.util.NetUtil.isValidIpV*Address` with `io.servicetalk.utils.internal.NetworkUtils.isValidIpV*Address`; Result: Users can use `HostHeaderHttpRequesterFilter` to set the `Host` header and move it anywhere in the filter chain.
- Loading branch information
1 parent
c0b80c0
commit 49e3525
Showing
10 changed files
with
498 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.