processor

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 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) ServeHTTP added in v0.0.3

func (rp *RequestProcessor) ServeHTTP(response http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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