humabunrouter

package
v2.39.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MultipartMaxMemory int64 = 8 * 1024

MultipartMaxMemory is the maximum memory to use when parsing multipart form data.

Functions

func New

func New(r *bunrouter.Router, config huma.Config) huma.API

New creates a new Huma API using *bunrouter.Router.

func NewAdapter

func NewAdapter(r *bunrouter.Router) huma.Adapter

NewAdapter creates a new adapter for the given bunrouter router.

func NewCompat

func NewCompat(r *bunrouter.CompatRouter, config huma.Config) huma.API

NewCompat creates a new Huma API using *bunrouter.CompatRouter.

func NewCompatAdapter

func NewCompatAdapter(r *bunrouter.CompatRouter) huma.Adapter

NewCompatAdapter creates a new adapter for the given bunrouter compat router.

func NewCompatContext

func NewCompatContext(op *huma.Operation, r *http.Request, w http.ResponseWriter) huma.Context

NewCompatContext creates a new Huma context from an HTTP request and response.

func NewContext

NewContext creates a new Huma context from an HTTP request and response.

func Unwrap added in v2.30.0

Unwrap extracts the underlying HTTP request and response writer from a Huma context. If passed a context from a different adapter it will panic.

Types

This section is empty.

Jump to

Keyboard shortcuts

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