handler

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheMiddlewareFactory added in v0.2.0

type CacheMiddlewareFactory = func(globs config.CacheGlobs) contracts.Middleware

type MockHandlerFactory added in v0.2.0

type MockHandlerFactory = func(response config.Response) contracts.Handler

type ProxyHandlerFactory added in v0.2.0

type ProxyHandlerFactory = func() contracts.Handler

type RequestHandler

type RequestHandler struct {
	*mux.Router
	// contains filtered or unexported fields
}

func NewUncorsRequestHandler

func NewUncorsRequestHandler(options ...RequestHandlerOption) *RequestHandler

func (*RequestHandler) ServeHTTP

func (h *RequestHandler) ServeHTTP(writer contracts.ResponseWriter, request *contracts.Request)

type RequestHandlerOption added in v0.2.0

type RequestHandlerOption = func(*RequestHandler)

func WithCacheMiddlewareFactory added in v0.2.0

func WithCacheMiddlewareFactory(factory CacheMiddlewareFactory) RequestHandlerOption

func WithLogger

func WithLogger(logger contracts.Logger) RequestHandlerOption

func WithMappings

func WithMappings(mappings config.Mappings) RequestHandlerOption

func WithMockHandlerFactory added in v0.2.0

func WithMockHandlerFactory(factory MockHandlerFactory) RequestHandlerOption

func WithProxyHandlerFactory added in v0.2.0

func WithProxyHandlerFactory(factory ProxyHandlerFactory) RequestHandlerOption

func WithStaticHandlerFactory added in v0.2.0

func WithStaticHandlerFactory(factory StaticMiddlewareFactory) RequestHandlerOption

type StaticMiddlewareFactory added in v0.2.0

type StaticMiddlewareFactory = func(path string, dir config.StaticDirectory) contracts.Middleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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