request

package
v0.0.0-...-716047f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidContentType = errors.New("Invalid content type")
	ErrExpectedEOF        = errors.New("Unexpected trailing data exists")
)

request errors

Functions

func BindJSON

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

BindJSON binds request body into interface v

func GetParam

func GetParam(r *http.Request, key string) string

GetParam is wrapper function of chi URLParam

Types

This section is empty.

Jump to

Keyboard shortcuts

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