Releases: Insprill/fetch4j
Releases · Insprill/fetch4j
v1.4.0
Changes
- Added query parameter support.
- Fixed Response#getContentEncoding returning the default encoding's display name instead of name if no encoding was found.
- Fixed a new byte array being allocated when calling Response#getBodyBytes with an empty body.
v1.3.1
Changes
- Added
Response#disconnect
to force disconnect a keep-alive connection.
- Fixed
Params#header
modifying default headers.
v1.3.0
Changes
- Added
Params.Method
enum for Params#method(Method)
, deprecating Params#method(String)
.
- Added
Params#body(byte[])
.
- Added
Params#contentType
shortcut for setting Content-Type header.
- Added
Params.ContentType
enum for setting common content types.
- Fixed NPE when getting response encoding when Content-Encoding and Content-Type headers are unset.
- Fixed NPE if server doesn't send response body on a failed request
v1.2.0
Changes
- Added methods to set default parameters.
- Fixed read timeout never getting updated.
- Fixed response stream not getting closed after being read.
- Fixed HostNotFoundException not being thrown if a request body was present,
- Updated Javadocs.
v1.1.0
Changes
- Added
Response#getHeaders()
.
- Added
Response#getBodyBytes()
.
- Added
useCaches
parameter.
- Made all exceptions extend
FetchException
.
- Removed the
StreamUtils
class.