2019-04-24 21:52:08 +00:00
|
|
|
package middlewares
|
|
|
|
|
2020-02-13 02:12:37 +00:00
|
|
|
import "errors"
|
|
|
|
|
2023-01-25 09:36:40 +00:00
|
|
|
var (
|
|
|
|
// ErrMissingXForwardedProto is returned on methods which require an X-Forwarded-Proto header.
|
|
|
|
ErrMissingXForwardedProto = errors.New("missing required X-Forwarded-Proto header")
|
|
|
|
|
|
|
|
// ErrMissingXForwardedHost is returned on methods which require an X-Forwarded-Host header.
|
|
|
|
ErrMissingXForwardedHost = errors.New("missing required X-Forwarded-Host header")
|
|
|
|
|
|
|
|
// ErrMissingHeaderHost is returned on methods which require an Host header.
|
|
|
|
ErrMissingHeaderHost = errors.New("missing required Host header")
|
|
|
|
|
|
|
|
// ErrMissingXOriginalURL is returned on methods which require an X-Original-URL header.
|
|
|
|
ErrMissingXOriginalURL = errors.New("missing required X-Original-URL header")
|
|
|
|
)
|