💾 Archived View for code.pfad.fr › pages captured on 2024-08-18 at 17:11:23. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-03-21)
-=-=-=-=-=-=-
import "code.pfad.fr/pages"
func ComputeHash(cleartext string) ([]byte, error)
func CustomizedNotFoundFile(fsys fs.FS, notFoundName string) http.Handler
CustomizedNotFoundFile check if a {name}.redirect file is present and redirects there.
func HashChecker(hash string) (func(cleartext string) error, error)
func HideDirWithoutIndex(fs fs.FS, indexName string) fs.FS
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)
func RedirectHandler(newHost string) http.Handler
func ServerHeader() string
func ToPunyCode(hostname string) (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] }
func (s *Server) Serve(httpLn net.Listener, geminiLn net.Listener, http3Conn net.PacketConn)
https://codeberg.org/pfad.fr/pages
git clone
https://codeberg.org/pfad.fr/pages.git git@codeberg.org:pfad.fr/pages.git