import "code.pfad.fr/pages"
CustomizedNotFoundFile check if a {name}.redirect file is present and redirects there. Webfinger will be handled has well. Otherwise fallbacks to the notFoundName file.
indexName is usually "index.html"
func HijackNotFoundResponse(w http.ResponseWriter, notFoundResponse func(w http.ResponseWriter)) http.ResponseWriter
func NewRequestCounter(pushURL string, hosts []string) (func(proto string, ipv int, host string), error)
type Server struct { GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) CountRequest func(proto string, ipv int, host string) HttpHandlers map[string]http.Handler // the keys must be punycode encoded, see [ToPunyCode] GeminiHandlers map[string]gemini.Handler // the keys must be punycode encoded, see [ToPunyCode] }
auth.go fs.go metrics.go not_found.go redirect.go server.go
Path | Synopsis |
---|---|
cmd/http-redirect | |
cmd/http3get6 | |
cmd/keygen | |
cmd/map64 | |
cmd/pages | |
packetconn |
https://codeberg.org/pfad.fr/pages
git clone
https://codeberg.org/pfad.fr/pages.git git@codeberg.org:pfad.fr/pages.git