whttprouter

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(params ...Param) wrouter.RouterImpl

New returns a wrouter.RouterImpl backed by a new httprouter.Router configured using the provided parameters.

Types

type Param

type Param interface {
	// contains filtered or unexported methods
}

func HandleMethodNotAllowed

func HandleMethodNotAllowed(notAllowed bool) Param

func HandleOPTIONS

func HandleOPTIONS(handle bool) Param

func RedirectFixedPath

func RedirectFixedPath(redirect bool) Param

func RedirectTrailingSlash

func RedirectTrailingSlash(redirect bool) Param

Jump to

Keyboard shortcuts

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