mirror of
https://github.com/nlepage/go-wasm-http-server.git
synced 2025-03-10 09:27:08 +00:00
docs: updates documentation for registerWasmHTTPListener
This commit is contained in:
parent
38c1814f66
commit
5dc06a3dbb
@ -182,7 +182,9 @@ URL string of the WebAssembly module, example: `"path/to/my-module.wasm"`.
|
||||
An optional object containing:
|
||||
|
||||
- `base` (`string`): Base path of the server, relative to the ServiceWorker's scope.
|
||||
- `cacheName` (`string`): Name of the [Cache](https://developer.mozilla.org/en-US/docs/Web/API/Cache) to store the WebAssembly binary.
|
||||
- `args` (`string[]`): Arguments for the WebAssembly module.
|
||||
- `passthrough` (`(request: Request): boolean`): Optional callback to allow passing the request through to network.
|
||||
|
||||
## Contributors ✨
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user