httptreemux

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package httptreemux provides some basic implementations for building routers based on dimfeld/httptreemux

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfig

func DefaultConfig(pf proxy.Factory, logger log.Logger) mux.Config

func DefaultFactory

func DefaultFactory(pf proxy.Factory, logger log.Logger) route.Factory

func ParamsExtractor

func ParamsExtractor(r *http.Request) map[string]string

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(m *httptreemux.ContextMux) Engine

func (Engine) Handle

func (g Engine) Handle(pattern, method string, handler http.Handler)

func (Engine) ServeHTTP

func (g Engine) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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