wasi_http

package
v0.0.0-...-db83f88 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

WASI-HTTP

This module implements the wasi-http specification. The specification is in active development/flux as is the wit-bindgen tool which is used to generate client libraries.

You should expect a degree of instability in these interfaces for the foreseeable future.

Example guest code

There are existing examples of working guest code in the following languages

Example server code

There is an example server in the following languages (more to come):

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectWasiHttp

func DetectWasiHttp(module wazero.CompiledModule) (bool, string)

Types

type WasiHTTP

type WasiHTTP struct {
	// contains filtered or unexported fields
}

func MakeWasiHTTP

func MakeWasiHTTP(version string) *WasiHTTP

func (*WasiHTTP) Instantiate

func (w *WasiHTTP) Instantiate(ctx context.Context, rt wazero.Runtime) error

func (*WasiHTTP) MakeHandler

func (w *WasiHTTP) MakeHandler(ctx context.Context, m api.Module) http.Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL