fhttp/rule/header.go
func (h *headerRule) Claim(reqCtx *fasthttp.RequestCtx) bool {
	j := func(reqCtx *fasthttp.RequestCtx) bool {
		get := func(key string) string {
			return string(reqCtx.Request.Header.Peek(key))
		}

		return h.claim(get)
	}
	return j(reqCtx)
}
func (h *headerRule) Claim(reqCtx *fasthttp.RequestCtx) bool {
	j := func(reqCtx *fasthttp.RequestCtx) bool {
		get := func(key string) string {
			return string(reqCtx.Request.Header.Peek(key))
		}

		return h.claim(get)
	}
	return j(reqCtx)
}
func ( h * headerRule ) Claim ( reqCtx * fasthttp . RequestCtx ) bool { j := func ( reqCtx * fasthttp . RequestCtx ) bool { get := func ( key string ) string { return string ( reqCtx . Request . Header . Peek ( key ) ) } return h . claim ( get ) } return j ( reqCtx ) }
// Claim validator
Claim validator