android-components / mozilla.components.concept.fetch.interceptor / Interceptor

Interceptor

interface Interceptor (source)

An Interceptor for a Client implementation.

Interceptors can monitor, modify, retry, redirect or record requests as well as responses going through a Client.

Types

Name Summary
Chain interface Chain
The request interceptor chain.

Functions

Name Summary
intercept abstract fun intercept(chain: Chain): Response
Allows an Interceptor to intercept a request and modify request or response.