interceptor library

Classes

BearerTokenInterceptor
Adds a static Authorization header to every outgoing request.
ErrorHandler
Thin wrapper passed to Interceptor.onError.
Interceptor
Contract every interceptor must implement.
LoggingInterceptor
Pretty-prints requests and responses to stdout.
RequestContext
Snapshot of a request at the moment it enters the interceptor chain.
RequestHandler
Thin wrapper passed to Interceptor.onRequest so the interceptor can either mutate & proceed or short-circuit with a synthetic result.
ResponseContext
Snapshot of a response before it reaches the caller.
ResponseHandler
Thin wrapper passed to Interceptor.onResponse.
RetryInterceptor
Retries failed requests up to maxAttempts times with exponential back-off.