std

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

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