body

package
v0.0.0-...-f3a3c3f Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBodyNotPlugged = errors.New("body not plugged")

ErrBodyNotPlugged body plug not plugged

Functions

func DecodeJSON

func DecodeJSON(ctx context.Context, v interface{}) error

DecodeJSON decode json to interface from body

func FetchBody

func FetchBody(ctx context.Context) ([]byte, bool)

FetchBody fetch request body from context

func New

func New(onError func(r *http.Request, err error)) xrest.Plugger

New create new body plug

Types

This section is empty.

Jump to

Keyboard shortcuts

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