handler

package
v0.0.0-...-ad8f1bd Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHumanPattern

func MakeHumanPattern(prefix *string) string

MakeHumanPattern builds a human-friendly URL for display.

func MakeRoutePattern

func MakeRoutePattern(prefix *string) string

MakeRoutePattern builds a pattern matching URL for the mux.

Types

type Executor

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

func NewExecutor

func NewExecutor(h *hook.Hook, req *hook.Request, logger *slog.Logger) *Executor

func (*Executor) Execute

func (e *Executor) Execute(w io.Writer) error

type FlushableWriter

type FlushableWriter interface {
	io.Writer
	http.Flusher
}

type RequestHandler

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

func NewRequestHandler

func NewRequestHandler(
	hookManager *hook_manager.Manager,
	logger *slog.Logger,
	responseHeaders hook.ResponseHeaders,
	defaultAllowedMethods []string,
	multipartMaxMemory int64,
) *RequestHandler

func (*RequestHandler) ServeHTTP

func (r *RequestHandler) ServeHTTP(w http.ResponseWriter, request *http.Request)

Jump to

Keyboard shortcuts

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