You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes, the server response may include additional properties that are not yet available in this library's types. You can access them using the model's `_additionalProperties` method:
@@ -210,7 +203,6 @@ Sometimes, the server response may include additional properties that are not ye
@@ -276,7 +268,6 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
276
268
277
269
---
278
270
279
-
280
271
## Error handling
281
272
282
273
This library throws exceptions in a single hierarchy for easy handling:
@@ -303,24 +294,32 @@ This library throws exceptions in a single hierarchy for easy handling:
303
294
## Network options
304
295
305
296
### Retries
297
+
306
298
Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default.
307
299
You can provide a `maxRetries` on the client builder to configure this:
300
+
308
301
```java
309
302
LithicClient client =LithicOkHttpClient.builder()
310
303
.fromEnv()
311
304
.maxRetries(4)
312
305
.build();
313
306
```
307
+
314
308
### Timeouts
309
+
315
310
Requests time out after 60 seconds by default. You can configure this on the client builder:
311
+
316
312
```java
317
313
LithicClient client =LithicOkHttpClient.builder()
318
314
.fromEnv()
319
315
.timeout(Duration.ofSeconds(30))
320
316
.build();
321
317
```
318
+
322
319
### Proxies
320
+
323
321
Requests can be routed through a proxy. You can configure this on the client builder:
0 commit comments