parse

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 12 Imported by: 6 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Body

func Body(req *http.Request) (types.APIObject, error)

func IsBrowser

func IsBrowser(req *http.Request, checkAccepts bool) bool

func MatchBrowser

func MatchBrowser(req *http.Request) bool

func MatchNotBrowser

func MatchNotBrowser(req *http.Request) bool

func Parse

func Parse(apiOp *types.APIRequest, urlParser URLParser) error

func ReadBody

func ReadBody(req *http.Request) (types.APIObject, error)

func Set

func Set(v Vars) func(*http.Request) bool

func ValidateMethod

func ValidateMethod(request *types.APIRequest) error

Types

type Decode

type Decode func(interface{}) error

type ParsedURL

type ParsedURL struct {
	Type       string
	Name       string
	Namespace  string
	Link       string
	Method     string
	Action     string
	Prefix     string
	SubContext map[string]string
	Query      url.Values
}

func StandardURLParser added in v0.9.1

func StandardURLParser(rw http.ResponseWriter, req *http.Request, schemas *types.APISchemas) (ParsedURL, error)

type Parser

type Parser func(apiOp *types.APIRequest, urlParser URLParser) error

type URLParser

type URLParser func(rw http.ResponseWriter, req *http.Request, schemas *types.APISchemas) (ParsedURL, error)

type Vars

type Vars struct {
	Type      string
	Name      string
	Namespace string
	Link      string
	Prefix    string
	Action    string
}

Jump to

Keyboard shortcuts

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