Function use_asset_handler

Source
pub fn use_asset_handler(
    name: &str,
    handler: impl FnMut(AssetRequest, RequestAsyncResponder) + 'static,
)
Expand description

Provide a callback to handle asset loading yourself.

The callback takes a path as requested by the web view, and it should return Some(response) if you want to load the asset, and None if you want to fallback on the default behavior.