Documentation
¶
Overview ¶
Package refusal writes one refusal the way access.ErrorWriter's contract promises, for every tree that answers through one.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(w http.ResponseWriter, r *http.Request, a *access.Authenticator, write access.ErrorWriter, e access.Error, scope string)
Write sets Cache-Control: no-store, a's challenge for e.Code with scope, and, when e.RetryAfter is set, Retry-After in whole seconds rounded up; then it hands e to write.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.