Skip to content

Latest commit

 

History

History
68 lines (39 loc) · 1.97 KB

File metadata and controls

68 lines (39 loc) · 1.97 KB

Http-Request changes

Check also MIGRATION.md for possible compatibility problems.

1.0.0

Removed method contentTypeOfBody from HttpRequestBuilder.

1.0.1

Added method addHttpClientCustomizer into HttpRequestBuilder

1.0.2

Removed inputStreamDeserializer from ResponseDeserializer. Reason: Response should be deserialized by ResponseDeserializer
Renamed ignorableDeserializer of ResponseDeserializer to toStringDeserializer

2.0.0

Due to the fact that old implementation was designed only for one predefined URI and wasn't much flexible the 2.x.x version don't have back compatibility with version 1.x.x. The 1.x.x versions will be supported in branch 1.x.x_support .

2.0.1

The method getContentAsString of ResponseBodyReaderContext become deprecated and will be removed in further versions.

2.1.0

The ResponseBodyReaderContext become generic.

2.2.0

The path method of WebTarget now adds path to existed path instead of replacing, for replace use setPath method.

2.2.2

Headers are available from ResponseHandler

3.3.x

  • Starting with 3.3.0 can be used immutable web target. HttpRequest.immutableTarget(uri)

  • Now request methods supported an auto-serializing object to body for content types application/json and application/xml

  • Added ResponseHandler.recuiredGet() method.

3.4.1

Added methods ClientBuilder.enableCookieManagement, ClientBuilder.enableAutomaticRetries and ClientBuilder.setConnectionTimeToLive.

3.4.2

Added methods ClientBuilder.addDefaultConnectionManagerBuilderCustomizer.

3.5.0

  • Charset handling was clarified and split:
    • WebTarget#setCharset(Charset) now sets both URI charset and request body charset.
    • Added WebTarget#setUriCharset(Charset) to control only URI encoding charset.
    • Added WebTarget#setBodyCharset(Charset) to control only request body charset used by request body converters.
  • Default charset for both URI and body is UTF-8.