import

mozilla.components.support.rusthttp.RustHttpConfig

// Note: other implementions of `Client` from concept-fetch are fine as well.

import

mozilla.components.lib.fetch.httpurlconnection.HttpURLConnectionClient

// some point before calling rust code that makes HTTP requests.

RustHttpConfig

.

setClient

(

lazy

{

HttpURLConnectionClient

()

})