Commit d6a6192
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.01 parent 746cb6c commit d6a6192
2 files changed
Lines changed: 208 additions & 288 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
0 commit comments