server_chi

command
v0.0.0-...-b934907 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

oapi-codegen generates both clients and servers from an OpenAPI v3 spec. It provides an interface that you implement. The individual route handlers do not conform to the http.Handler interface in some cases, such as when there are path parameters, so this library should not be considered compatible with the standard library handler or mux. Path params are nicely added to the interface method signatures, and are easy to access. However, bodies are not automatically parsed/unmarshalled for you, so you must know which input/body model goes with which route and unmarshal manually. Similarly, the response, whether successful or an error, must be marshalled and sent manually.

Directories

Path Synopsis
Package server provides primitives to interact with the openapi HTTP API.
Package server provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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