request

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	// Form contains reflect.Struct, build from inline form usages with form.NewInlineForm
	Form reflect.Type
}

type ContentTypeMapping

type ContentTypeMapping map[string]Body

type ParseOpt

type ParseOpt func(opts *requestParseOpts)

func ParseInlineForms

func ParseInlineForms() ParseOpt

func ParseInlinePathParams

func ParseInlinePathParams() ParseOpt

func ParseInlineQueryParams

func ParseInlineQueryParams() ParseOpt

type Request

type Request struct {
	// BindModel as it's used in code: pkg.TypeName
	BindModel string
	// Full path to BindModel package
	BindModelPkg string
	// ContentTypeMapping contains mapping of content-type to request body
	ContentTypeMapping ContentTypeMapping
	PathParams         []path.Param
	QueryParams        []query.Param
}

func New

func New(funcDecl *ast.FuncDecl, info *types.Info, opts ...ParseOpt) *Request

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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