httpconfig

package
v0.0.0-...-6a757b2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Forwarded  forwarded.Middleware
	Config     httpservice.Config
	Headers    misc.Headers
	Hosts      service.Hosts
	ErrorPages ErrorPagesConfig
}

func New

func New() *Config

type ErrorPagesConfig

type ErrorPagesConfig struct {
	ErrorPage          string
	StatusCodePages    []*StatusCodePage
	IgnoredStatusCodes []int
}

func (*ErrorPagesConfig) Middleware

func (c *ErrorPagesConfig) Middleware() func(w http.ResponseWriter, r *http.Request, next http.HandlerFunc)

type StatusCodePage

type StatusCodePage struct {
	StatusCode int
	Path       string
}

Jump to

Keyboard shortcuts

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