Documentation
¶
Overview ¶
Command httpserver is a minimal HTTP server that works with both TinyGo and standard Go. Under TinyGo, the blank import registers the host Netdever so net/http can use the OS TCP stack.
tinygo build -o server ./examples/httpserver && ./server go run ./examples/httpserver
Optional environment variables:
ADDR listen address (default :8080) UPSTREAM_URL reverse-proxy target (default http://127.0.0.1:8081)
Click to show internal directories.
Click to hide internal directories.