Package co.cryptoservice.sdk
Interface ResponseListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Observes every HTTP response the client receives, retried attempts included: for metrics, quota
tracking (
X-Tenant-RateLimit-*) or tests. It sees status and headers, never a body.
It runs on the HTTP client's thread before the call completes, so it should be quick and must be thread-safe. An exception it throws is ignored.
-
Method Summary
-
Method Details
-
onResponse
Called once per response.- Parameters:
info- the response's method, path, status, headers and attempt number
-