android-components / mozilla.components.concept.fetch.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.


Name Summary
Chain interface Chain
The request interceptor chain.


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

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.