http

package
v7.0.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointFromRequest

func EndpointFromRequest(req *gohttp.Request) string

func ExpvarHandler

func ExpvarHandler(host string) (gohttp.HandlerFunc, error)

func GetIIIFParameter

func GetIIIFParameter(req *gohttp.Request, key string) (string, error)

func ImageHandler

func ImageHandler(config *iiifconfig.Config, driver iiifdriver.Driver, images_cache iiifcache.Cache, derivatives_cache iiifcache.Cache) (gohttp.HandlerFunc, error)

func InfoHandler

func InfoHandler(config *iiifconfig.Config, driver iiifdriver.Driver, images_cache iiifcache.Cache) (gohttp.HandlerFunc, error)

func LoggerWithRequest

func LoggerWithRequest(req *gohttp.Request, logger *slog.Logger) *slog.Logger

Types

type IIIFParameters

type IIIFParameters struct {
	Identifier string
	Region     string
	Size       string
	Rotation   string
	Quality    string
	Format     string
}

func GetIIIFParameters

func GetIIIFParameters(req *gohttp.Request) (*IIIFParameters, error)

Jump to

Keyboard shortcuts

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