February 14, 2024
0.8.1
(feat):
The RequestOptions object now supports configuring an optional timeout to apply per-request.
(feat):
The RequestOptions object now supports configuring an optional timeout to apply per-request.
1 RequestOptions ro = RequestOptions.builder().timeout(90).build(); // Creates a timeout of 90 seconds for the request 2 // You could also specify the timeunit, similar to as if you were using OkHttp directly 3 // RequestOptions ro = RequestOptions.builder().timeout(2, TimeUnit.MINUTES).build(); 4 client.films.list(ro);