wwm

package
v0.0.0-...-0ba6107 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoBody = &Error{"No body was sent", http.StatusBadRequest}
)

Functions

func DecodeBody

func DecodeBody(body io.Reader, v interface{}) error

Types

type Error

type Error struct {
	Message string
	Code    int
}

func (Error) Error

func (err Error) Error() string

type Handler

type Handler func(http.ResponseWriter, *http.Request) error

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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