Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var fileSystem: FileSystem
Link copied to clipboard

HTTP transport used by this host.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var monotonicClock: () -> Long
Link copied to clipboard
var secureRandom: CryptoRand
Link copied to clipboard
var stderr: RawSink
Link copied to clipboard
var stdin: RawSource
Link copied to clipboard
var stdout: RawSink
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var wallClockTimeZone: TimeZone

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun withCoroutineDispatcher(dispatcher: CoroutineDispatcher): WasiPreview3.Builder
Link copied to clipboard
fun withCoroutineScope(scope: CoroutineScope): WasiPreview3.Builder
Link copied to clipboard
Link copied to clipboard
fun withFileSystem(fileSystem: FileSystem): WasiPreview3.Builder
Link copied to clipboard
fun withFixedWallClock(instant: Instant, zoneId: String = "UTC"): WasiPreview3.Builder
Link copied to clipboard
fun withHttpClient(httpClient: HttpClient): WasiPreview3.Builder

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

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Uses a caller-owned Ktor HTTP client. Closing the built WasiPreview3 does not close httpClient.

Link copied to clipboard
fun withMonotonicClock(monotonicClock: () -> Long): WasiPreview3.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Replaces the network capability set. The default policy is WasiNetworkPolicy.DENY_ALL.

Link copied to clipboard
Link copied to clipboard
fun withPreopenedDirectory(guestPath: String, hostPath: Path): WasiPreview3.Builder
fun withPreopenedDirectory(guestPath: String, hostPath: Path, writable: Boolean): WasiPreview3.Builder
Link copied to clipboard
fun withResourceBudget(parallelism: Int, streamBufferCapacity: Int = DEFAULT_STREAM_BUFFER_CAPACITY, maxPendingFutures: Int, maxPendingStreams: Int, maxWaitables: Int = maxPendingFutures + maxPendingStreams, dispatcher: CoroutineDispatcher = Dispatchers.Default): WasiPreview3.Builder
Link copied to clipboard
fun withSecureRandom(secureRandom: CryptoRand): WasiPreview3.Builder
Link copied to clipboard
Link copied to clipboard
fun withStderr(stderr: RawSink): WasiPreview3.Builder
Link copied to clipboard
fun withStdin(stdin: RawSource): WasiPreview3.Builder
Link copied to clipboard
fun withStdout(stdout: RawSink): WasiPreview3.Builder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Routes WASI UDP through a browser-compatible WebSocket proxy.

Link copied to clipboard
Link copied to clipboard
fun withWallClock(now: () -> Instant, zoneId: String = "UTC"): WasiPreview3.Builder
fun withWallClock(wallClock: Clock, zoneId: String = "UTC"): WasiPreview3.Builder
fun withWallClock(wallClock: Clock, timeZone: TimeZone): WasiPreview3.Builder
Link copied to clipboard