WasiHttpClient.fromHandler constructor

WasiHttpClient.fromHandler({
  1. required Handler handler,
  2. required Types types,
})

Creates a WasiHttpClient that routes requests directly to an in-process or composed wasi:http/handler Handler without going over the network.

Implementation

WasiHttpClient.fromHandler({required Handler handler, required Types types})
  : this._(_HandlerAsClient(handler), types);