cdn

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Store         *store.Store
	ServerHeader  string
	GetHostConfig func(scheme, host string) *HostConfig
}

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

type HostConfig

type HostConfig struct {
	Origin struct {
		Scheme string
		Host   string
	}
	HttpsRedirect      bool
	HttpsRedirectPort  int
	HostOverride       bool
	IgnoreQuery        bool
	CompressionMaxSize int64
	UploadBurst        int64
	UploadRate         int64
}

Jump to

Keyboard shortcuts

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