request

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedContentType = errors.New("unsupported request content type")
)

Functions

func Decode

func Decode(r *http.Request, v interface{}) error

Decode extracts data from a request and deserializes it into the given struct according to the Content-Type for the request.

func DecodeForm

func DecodeForm(r *http.Request, v interface{}) error

func DecodeJSON

func DecodeJSON(r *http.Request, v interface{}) error

func DecodeXML

func DecodeXML(r *http.Request, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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