Documentation
¶
Overview ¶
Package refusal writes the body every request goapiauth turns away answers with.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Unauthorized ¶
func Unauthorized(w http.ResponseWriter, bearerError, code, message string)
Unauthorized answers 401 with the RFC 6750 Bearer challenge, naming bearerError in it where that is not empty, and the body Write gives it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.