serve

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServe

func NewServe(opts ...Option) http.Handler

Types

type Option

type Option func(s *Serve)

func WithAllowDelete

func WithAllowDelete(b bool) Option

func WithAllowList

func WithAllowList(b bool) Option

func WithAllowPut

func WithAllowPut(b bool) Option

func WithRedirect

func WithRedirect(r bool, expires time.Duration) Option

func WithSSS

func WithSSS(sss *sss.SSS) Option

type Serve

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

func (*Serve) ServeHTTP

func (s *Serve) ServeHTTP(rw http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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