Overview of Unirest-Java features
mainUnirest-Java is a fluent HTTP client library designed for simplicity and ease of use. It supports modern HTTP protocols and provides extensive capabilities for both request building and response handling.
Key Features:
- Protocols: HTTP 1 and HTTP 2, and WebSockets.
- Data Formats: JSON Patch (RFC-6902) support and default object mappers for Jackson and GSON.
- Request Building:
- Path parameters and query parameter building.
- Header manipulation, including full cookie support.
- Multipart requests.
- Automatic conversion of POJOs into string or binary bodies.
- Global request interceptors.
- Response Handling:
- Global response interceptors.
- Automatic conversion of response bodies into POJOs.
- Built-in error handling.
- Testing: Includes a mocking library for testing HTTP interactions.