Skip to content

Commit d6a6192

Browse files
committed
feat(http,security,deps): migrate HTTPHandler to Java HttpClient, add async/SSE improvements, and upgrade dependencies
Refactor HTTPHandler to use java.net.http.HttpClient instead of HttpURLConnection Introduce buildClient with proxy autodetection and configurable redirect policy Add buildHttpRequest and BodyPublisher abstraction for cleaner request construction Support multipart/form-data, URL-encoded forms, attachments, and raw body in a unified pipeline Skip restricted headers (e.g., Host, Content-Length) managed internally by HttpClient Add asynchronous request support via handleRequestAsync using CompletableFuture Improve streaming behavior: Native SSE and chunked streaming using HttpResponse<InputStream> Consumer-based streaming path always enabled when a listener is provided Simplify SSE handling and remove manual transfer-encoding checks Redesign HTTPResponse to wrap HttpResponse<InputStream> Proper header mapping and content decoding support Safer stream handling with try-with-resources Unified constructor for standard and streaming responses Enhance redirect control with disableFollowRedirects() and HttpClient redirect policies Minor cleanup: Optimize query builder logic Consolidate imports and modernize API usage Improve JWT configuration: Clarify withSecret(String) as plain text secret Add withBase64Secret(String) to support direct Base64-encoded keys Upgrade dependencies: jupiter 6.0.2 → 6.0.3 kafka 4.1.1 → 4.2.0 lettuce 7.2.1.RELEASE → 7.4.0.RELEASE sqlite 3.51.1.0 → 3.51.2.0
1 parent 746cb6c commit d6a6192

2 files changed

Lines changed: 208 additions & 288 deletions

File tree

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@
131131
<java.version>17</java.version>
132132
<jjwt.version>0.13.0</jjwt.version>
133133
<jna.version>5.18.1</jna.version>
134-
<jupiter.version>6.0.2</jupiter.version>
135-
<kafka.version>4.1.1</kafka.version>
136-
<lettuce.version>7.2.1.RELEASE</lettuce.version>
134+
<jupiter.version>6.0.3</jupiter.version>
135+
<kafka.version>4.2.0</kafka.version>
136+
<lettuce.version>7.4.0.RELEASE</lettuce.version>
137137
<maven.compiler.source>17</maven.compiler.source>
138138
<maven.compiler.target>17</maven.compiler.target>
139-
<sqlite.version>3.51.1.0</sqlite.version>
139+
<sqlite.version>3.51.2.0</sqlite.version>
140140
<h2.version>2.4.240</h2.version>
141141
<mockito.version>5.21.0</mockito.version>
142142
<nashorn.version>15.7</nashorn.version>

0 commit comments

Comments
 (0)