methodoverride

package module
v0.0.1-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2019 License: MIT Imports: 6 Imported by: 0

README

Middleware: Request Method Override

How to use?

Header: X-HTTP-Method-Override
Methods: GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH

var api = rest.New("/")

api.Use(methodoverride.Load())

Documentation

Index

Constants

View Source
const (
	ErrCodeMalformedBody = "MALFORMED_BODY"
	ErrCodeFormParse     = "FORM_PARSE_ERROR"
)

Possible error codes expose to handle errors

Variables

This section is empty.

Functions

func Load

func Load() rest.Handler

Load method override middleware/interceptor.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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