android-components / mozilla.components.concept.engine.request / RequestInterceptor / onLoadRequest

# onLoadRequest

`open fun onLoadRequest(session: EngineSession, uri: String): InterceptionResponse?` (source)

A request to open an URI. This is called before each page load to allow custom behavior implementation.

### Parameters

`session` - The engine session that initiated the callback.

Return
An InterceptionResponse object containing alternative content if the request should be intercepted. null otherwise.