Documentation ¶
Index ¶
- func Body(req *http.Request) (types.APIObject, error)
- func IsBrowser(req *http.Request, checkAccepts bool) bool
- func MatchBrowser(req *http.Request) bool
- func MatchNotBrowser(req *http.Request) bool
- func Parse(apiOp *types.APIRequest, urlParser URLParser) error
- func ReadBody(req *http.Request) (types.APIObject, error)
- func Set(v Vars) mux.MatcherFunc
- func ValidateMethod(request *types.APIRequest) error
- type Decode
- type ParsedURL
- type Parser
- type URLParser
- type Vars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchBrowser ¶
func MatchNotBrowser ¶
func Set ¶
func Set(v Vars) mux.MatcherFunc
func ValidateMethod ¶
func ValidateMethod(request *types.APIRequest) error
Types ¶
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 MuxURLParser ¶
func MuxURLParser(rw http.ResponseWriter, req *http.Request, schemas *types.APISchemas) (ParsedURL, error)
type URLParser ¶
type URLParser func(rw http.ResponseWriter, req *http.Request, schemas *types.APISchemas) (ParsedURL, error)
Click to show internal directories.
Click to hide internal directories.