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 providing custom behavior.

### Parameters

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

Return
An InterceptionResponse object containing alternative content or an alternative URL. Null if the original request should continue to be loaded.