processor

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedRequset = errors.New("UNCORS: Failed requset handler")

Functions

func WithMiddleware

func WithMiddleware(middleware HandlingMiddleware) requestProcessorOption

Types

type HandlingMiddleware

type HandlingMiddleware interface {
	Wrap(next infrastructure.HandlerFunc) infrastructure.HandlerFunc
}

type RequestProcessor

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

func NewRequestProcessor

func NewRequestProcessor(options ...requestProcessorOption) *RequestProcessor

func (*RequestProcessor) HandleRequest

func (rp *RequestProcessor) HandleRequest(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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