fasthttpserver

command
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Command fasthttpserver is a fasthttp server that works with both TinyGo and standard Go, routing through the fasthttprouter fork. Under TinyGo, the blank import registers the host Netdever so the net package can use the OS TCP stack. No build tags are needed on either compiler.

tinygo build -o server ./examples/fasthttpserver && ./server
go run ./examples/fasthttpserver

Optional environment variables:

ADDR    listen address (default 127.0.0.1:8080; port 0 does not work under
        TinyGo, whose Listener reports the address it was asked for)
STATIC  directory to serve under /static/ (default: route disabled)

Jump to

Keyboard shortcuts

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