onRequest

abstract fun onRequest(@NonNull request: HttpRequest): HttpRequest

The function to intercept HTTP requests with.

Return

The modified HttpRequest object.

Parameters

request

The original HttpRequest object to be modified.