Middleware

interface Middleware

interface to do interceptions at http calls. It can modify each request and handles all responses in a specified way.

Functions

enrichRequest
Link copied to clipboard
js
abstract suspend fun enrichRequest(request: Request): Request
enriches requests with additional information.
handleResponse
Link copied to clipboard
js
abstract suspend fun handleResponse(response: Response): Response
handles responses.
stopPropagation
Link copied to clipboard
js
open fun Response.stopPropagation(): Response
stops propagation of a response to the following Middlewares in the chain

Inheritors

Authentication
Link copied to clipboard