Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthHandler ¶
func BasicAuthHandler(userid, passwd string, next http.Handler) http.HandlerFunc
BasicAuthHandler returns an HTTP handler function that performs basic authentication using the provided userid and password. It checks the request's basic authentication credentials and responds with a 401 Unauthorized status if the credentials are invalid.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.