caddyconfigjson

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: AGPL-3.0-only Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigJSONHandler

type ConfigJSONHandler struct {
	Next httpserver.Handler
	// contains filtered or unexported fields
}

ConfigJSONHandler is a handler to return config JSON files.

func NewConfigJSONHandler

func NewConfigJSONHandler(url, root, path string, next httpserver.Handler) *ConfigJSONHandler

NewConfigJSONHandler creates a new ConfigJSONHandler with the provided options.

func (*ConfigJSONHandler) ServeHTTP

func (h *ConfigJSONHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error)

Jump to

Keyboard shortcuts

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