server

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Command server runs an echo server built with httpkit/server: response envelope, trace ids, access log, sentinel errors and pagination.

go run ./examples/server
curl -s 'localhost:8080/users?page=1&page-size=2'
curl -s localhost:8080/users/42
curl -s -XPOST localhost:8080/users -d '{"name":"x"}' -H 'Content-Type: application/json'

Jump to

Keyboard shortcuts

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