enable

suspend fun enable(args: Fetch.EnableParameter, mode: CommandMode = CommandMode.DEFAULT)

Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.


suspend fun enable(patterns: List<Fetch.RequestPattern>? = null, handleAuthRequests: Boolean? = null)

Enables issuing of requestPaused events. A request will be paused until client calls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.

Parameters

patterns

If specified, only requests matching any of these patterns will produce fetchRequested event and will be paused until clients response. If not set, all requests will be affected.

handleAuthRequests

If true, authRequired events will be issued and requests will be paused expecting a call to continueWithAuth.