handler

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestHandler

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

func NewUncorsRequestHandler

func NewUncorsRequestHandler(options ...UncorsRequestHandlerOption) *RequestHandler

func (*RequestHandler) ServeHTTP

func (m *RequestHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type UncorsRequestHandlerOption

type UncorsRequestHandlerOption = func(*RequestHandler)

func WithFileSystem

func WithFileSystem(fs afero.Fs) UncorsRequestHandlerOption

func WithMappings

func WithMappings(mappings config.Mappings) UncorsRequestHandlerOption

func WithURLReplacerFactory

func WithURLReplacerFactory(replacerFactory contracts.URLReplacerFactory) UncorsRequestHandlerOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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