withHttpClient

Uses a caller-owned HTTP transport. WasiPreview2.close never closes the supplied client.


fun withHttpClient(httpClient: HttpClient): WasiPreview2.Builder

Uses a caller-owned Ktor HTTP client. WasiPreview2.close never closes the supplied client.