parsing

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestParser

type RequestParser struct {
	// contains filtered or unexported fields
}

RequestParser handles parsing incoming HTTP requests into input structs Uses go:linkname to access Huma's internal functions with fallbacks

func NewRequestParser

func NewRequestParser() *RequestParser

NewRequestParser creates a new request parser

func (*RequestParser) ParseInput

func (p *RequestParser) ParseInput(api huma.API, ctx huma.Context, inputPtr reflect.Value, inputType reflect.Type) error

ParseInput parses the incoming request using Huma's internal logic when possible

type ResponseWriter

type ResponseWriter struct{}

ResponseWriter handles writing HTTP responses

func NewResponseWriter

func NewResponseWriter() *ResponseWriter

NewResponseWriter creates a new response writer

func (*ResponseWriter) WriteOutput

func (w *ResponseWriter) WriteOutput(api huma.API, ctx huma.Context, output interface{}, outputType reflect.Type, operation huma.Operation) error

WriteOutput writes the output response using Huma's exact pipeline

Jump to

Keyboard shortcuts

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