Unirest is a lightweight HTTP client library from Mashape. Along with Java, it’s also available for Node.js, .Net, Python, Ruby, etc.
UniRest Java Tutorial (https://interviewbubble.com/unirest-java-tutorial/)
-
Introduction to Unirest:
i. Why Unirest needed? ii. What is UniRest? iii. Advantages of UniRest iv. Features of Unirest v. Availability and support for Unirest
-
Installation and Setup
-
Features Details and how to use:
1. Make GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS requests 2. Both synchronous and asynchronous (non-blocking) requests 3. Supports form parameters, file uploads and custom body entities 4. Easily add route parameters without ugly string concatenations 5. Supports gzip 6. Supports Basic Authentication natively 7. Customizable timeout, concurrency levels, and proxy settings 8. Customizable default headers for every request (DRY) 9. Customizable HttpClient and HttpAsyncClient implementation 10. Automatic JSON parsing into a native object for JSON responses 11. Customizable binding, with mapping from response body to Java Object
-
Demo Project: Java REST Client Using Unirest Java API