Releases: king/king-http-client
Releases · king/king-http-client
Version 3.0.9
- Bug fix for an race condition in WebSocket connection. Now
onConnected
callback is called before theCompletableFuture
is completed. Both theonConnected
andCompletableFuture
is called on the netto io threads, so avoid blocking!
Version 3.0.8
- Added support for fetching http version as well as status reason from
HttpResponse
- Added support for supplying what http verb should be used in
HttpClient
Version 3.0.6
- Improved shutdown by waiting for all channels to close
- Fixed potential NPE
- Removed duplicate AttributeKey
- Added
HttpClient.isStarted()
method
Version 3.0.2
- Added support for redirects for websockets
Version 3.0.0
- Redesign of builder APIs.
- The
ResponseBodyConsumer
have been moved from theexecute
method to thebuild
method. - The
HttpCallback
have been moved from theexecute
method to thewithHttpCallback
method. - The
NioCallback
have been moved from theexecute
method to thewithNioCallback
method. - A few methods have been renamed to align them between the classes.
- The
- Added support for websocket.
- Added support for building multipart uploads.
- Added support for upload progression callbacks through the
withUploadCallback
method. - Fixed a bug in idle timeout handling.
Version 2.3.1
- Client is now waiting for ssl/tls handshake to complete before trying to push data
Version 2.3.0
- Changed to Java 8
Future<FutureResult<T>>
has been replaced withCompletableFuture<HttpResponse<T>>
inBuiltClientRequest
.- The
CompletableFuture.get()
can now throwExecutionException
which contains the underlaying Exception (Before this exception could be fetched from theFutureResult
). HttpClient.setConf
has been deprecated and replaced withNettyHttpClientBuilder.setOption
UriQueryBuilder.addParameter
can now be chained.- Netty 4.1 has been bumped to 4.1.15.Final.
Version 2.2.0
- Refactor of SseClient
Version 2.1.10
- Made it possible to specify custom executor to execute the callbacks on
Version 2.1.8
- Added method to HttpBody to supply the used encoding.
- Sending the used encoding in the content-type header