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

Support Client Filters Pass in the JDK client #9700

Merged
merged 10 commits into from
Aug 14, 2023
Merged

Conversation

timyates
Copy link
Contributor

@timyates timyates commented Aug 11, 2023

Enables Http Client Filters for the JDK client.

Doesn't use them yet, but passes them through
@timyates timyates self-assigned this Aug 11, 2023
@timyates
Copy link
Contributor Author

Fixed up the logging as per #9710 (so we don't lose it in the merge)

@timyates timyates marked this pull request as ready for review August 14, 2023 09:49
@timyates timyates requested review from yawkat and sdelamo August 14, 2023 09:49
sdelamo and others added 2 commits August 14, 2023 14:59
* remove extra blank lines

* close server

* use SocketUtils.findAvailablePort

* remove unncessary ("/") from @get and @post

* remove extra blank lines

* remove unnecessary return

* use @MicronautTest

* extract clientFilterEntries method

* log with headers with HttpHeadersUtil

* use @ClientFilter and @ResponseFilter
* Update StaticClientFilterSpec.groovy

* Fix the same test in the netty client

---------

Co-authored-by: Tim Yates <tim.yates@gmail.com>
@timyates timyates requested a review from sdelamo August 14, 2023 14:06
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

92.7% 92.7% Coverage
0.0% 0.0% Duplication

@timyates timyates added this to the 4.1.1 milestone Aug 14, 2023
@sdelamo sdelamo merged commit 282696b into 4.1.x Aug 14, 2023
@sdelamo sdelamo deleted the jdk-http-client-filter branch August 14, 2023 16:31
@timyates timyates changed the title Pass client filters through to the JDK client. Support Client Filters Pass in the JDK client Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants