1.22.0 (2021-11-05)
Features Added
- Added
ReferenceManager
which is capable of performingCleaner
-like functionality by allowing aRunnable
callback
to be triggered when an object reference is eligible for garbage collection. - Added
RequestOptions
which allows for a chained set of operations to be applied to anHttpRequest
before being
sent through theHttpPipeline
. - Added an
ETag
class which represents an HTTP ETag. - Added
getJavaClass
method to retrieve the representing instance of theTypeReference
created. - Added support for HTTP method OPTIONS by adding an
Options
annotation. - Added a function to
CoreUtils
which merges twoContext
s together. - Added a new feature flag
AZURE_JACKSON_ADAPTER_USE_ACCESS_HELPER
which indicates toJacksonAdapter
to wrap
serialization calls inAccessController.doPrivileged
to preventSecurityManager
exceptions whenJacksonAdapter
has the prerequisite permissions.
Bugs Fixed
- Fixed a bug where an initial length of 0 wasn't permitted when creating a
ByteBuffer
collector. - Fixed a bug where an exception type would be instantiated and never used in a hot path, reducing memory usage.
- Fixed a bug where the content length of a serializable request body may return null when it is known (already serialized).
Other Changes
- Improved performance of operations that merge or retrieve all values of
Context
.