web

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMaxMemory = 12 << 20 // 8 MB
	APIKeyHeader     = "X-Access-Key"
)

consts

Variables

This section is empty.

Functions

func Bind

func Bind(req *http.Request, obj interface{}) error

Bind ...

func CheckAPIKey added in v1.5.4

func CheckAPIKey(next http.Handler) http.Handler

CheckAPIKey ...

func GetOrHeadHandler

func GetOrHeadHandler(w http.ResponseWriter, r *http.Request)

GetOrHeadHandler ...

func Handler

func Handler() http.Handler

Handler ...

func StageHandler

func StageHandler(w http.ResponseWriter, r *http.Request)

StageHandler ...

Types

type App added in v1.5.4

type App = storage.App

func AppFromContext added in v1.5.4

func AppFromContext(ctx context.Context) (a *App, ok bool)

AppFromContext ...

Directories

Path Synopsis
admin

Jump to

Keyboard shortcuts

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