authelia/internal/handlers/const_test.go

36 lines
771 B
Go
Raw Permalink Normal View History

package handlers
import (
"time"
"github.com/valyala/fasthttp"
)
var (
testRequestMethods = []string{
fasthttp.MethodOptions, fasthttp.MethodHead, fasthttp.MethodGet,
fasthttp.MethodDelete, fasthttp.MethodPatch, fasthttp.MethodPost,
fasthttp.MethodPut, fasthttp.MethodConnect, fasthttp.MethodTrace,
}
testXHR = map[string]bool{
testWithoutAccept: false,
testWithXHRHeader: true,
}
)
const (
testXOriginalMethod = "X-Original-Method"
2023-04-17 23:53:26 +00:00
testXOriginalUrl = "X-Original-URL"
testBypass = "bypass"
testWithoutAccept = "WithoutAccept"
testWithXHRHeader = "WithXHRHeader"
)
const (
testInactivity = time.Second * 10
testRedirectionURL = "http://redirection.local"
testUsername = "john"
exampleDotCom = "example.com"
)