Repository navigation
Add HTTP Method configuration for target endpoint (POST/PUT) - #307
Open
joshiausdemwald wants to merge 7 commits into
Open
joshiausdemwald wants to merge 7 commits into
joshiausdemwald wants to merge 7 commits into
Conversation
… endpoint, Defaulted on POST Method. Supported POST/PUT
Fix linter reported issue
Fix Linter reported issue
Fix Linter reported issue
- Simplify HttpMethodsType to a plain enum (drop the redundant name field and forName lookup), following the OAuth2AuthorizationMode pattern - Build the HttpRequest once in AbstractHttpSender.prepareRequest and switch only on the method, removing the duplicated builder calls - Rename requestBuilder to request in send() and drop a stray comment - Assert HTTP methods in DefaultHttpSenderTest against plain string literals instead of the enum, so a rename doesn't silently pass
added 2 commits
July 30, 2026 20:45
Fix import order (org.apache.kafka before io.aiven), align indentation with the file's existing style, and drop a leftover times(1) call whose static import had been removed upstream.
Extend HttpMethodsType with PATCH and build the request via the generic HttpRequest.Builder#method since java.net.http has no dedicated PATCH builder method.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Picks up #198 (by @ecararus), rebased onto current
mainand updated to address the review feedback from @jeqo:HttpMethodsTypeto a plain enum (drop the redundantnamefield andforName), following theOAuth2AuthorizationModepattern.HttpRequestonce inAbstractHttpSender.prepareRequestand switch only on the method, instead of duplicating the builder call per method.requestBuildertorequestinsend().DefaultHttpSenderTestagainst plain string literals instead of the enum, so a rename doesn't silently pass.Adds a
http.methodsink config option (defaultPOST, supportsPOST/PUT) used when sending data to the target endpoint.Closes #198.
Test plan
./gradlew compileJava compileTestJava./gradlew checkstyleMain checkstyleTestclean for all files this PR touches./gradlew test --tests "io.aiven.kafka.connect.http.sender.*" --tests "io.aiven.kafka.connect.http.config.*"passing