request

package
v0.0.0-...-d64f9d6 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 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 Parse

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

Parse takes data from a request and deserializes it into the given struct according to the Content-Type of the request.

func ParseForm

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

func ParseJSON

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

func ParseXML

func ParseXML(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