adapters-nethttp

command
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package adapters-nethttp demonstrates wiring the api/rest builder to a standard net/http server using the adapters/nethttp adapter.

1. Define codecs and build routes with api/rest (transport-agnostic). 2. Wire each RouteHandle to net/http with adapters/nethttp.Register. 3. Generate the OpenAPI 3.1 spec from the same builder.

Run with: go run ./examples/adapters-nethttp

Jump to

Keyboard shortcuts

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