android-components / mozilla.components.browser.engine.gecko / GeckoEngine / speculativeConnect


fun speculativeConnect(url: String): Unit (source)

Overrides Engine.speculativeConnect

Opens a speculative connection to the host of url.

This is useful if an app thinks it may be making a request to that host in the near future. If no request is made, the connection will be cleaned up after an unspecified.