wasihttp

package
v0.0.0-...-ca78b31 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

Package wasihttp implements wasi:http/proxy for Go using standard net/http interfaces.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(h http.Handler)

Serve sets the http.Handler that incoming wasi-http requests are routed to. By default, requests are routed to http.DefaultServeMux.

Types

type Transport

type Transport struct{}

Transport implements http.RoundTripper using wasi-http APIs.

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip executes a single HTTP transaction.

Jump to

Keyboard shortcuts

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