request

package
v0.0.0-...-ca0f7d1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONBinder

type JSONBinder interface {
	Bind(r *http.Request) error
}

type MultiPartBinder

type MultiPartBinder interface {
	Bind(r *http.Request, form *multipart.Form) error
}

type ParseBodyError

type ParseBodyError struct {
	Status  int
	Message string
}

func ParseJSONBody

func ParseJSONBody(r *http.Request, dst JSONBinder, caller string, logger func(r *http.Request) log.Interface) *ParseBodyError

func ParseMultipartFormDataBody

func ParseMultipartFormDataBody(
	r *http.Request,
	binder MultiPartBinder,
	caller string,
	logger func(r *http.Request) log.Interface,
) *ParseBodyError

Jump to

Keyboard shortcuts

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