package basicauth
Import Path
go.pact.im/x/basicauth (on go.dev)
Dependency Relation
imports 3 packages, and imported by 0 packages
Involved Source Files
Package basicauth implements HTTP basic authentication scheme.
See https://tools.ietf.org/html/rfc7617
static.go
Package-Level Type Names (only one, which is exported)
StaticHandler is a handler that authenticates requests using static
credentials.
Handler is the handler protected by HTTP basic authentication.
PassHash is password hash to compare against.
UserHash is username hash to compare against.
ServeHTTP implements the http.Handler interface.
*StaticHandler : net/http.Handler
func Static(handler http.Handler, user, pass string) *StaticHandler
Package-Level Functions (only one, which is exported)
Static returns a handler that serves requests from underlying handler after
successful HTTP basic authentication with static credentials.
Package-Level Constants (only one, which is unexported)
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)