// csrfTokenFromForm returns a `csrfTokenExtractor` that extracts token from the
// provided request header.
csrfTokenFromForm returns a `csrfTokenExtractor` that extracts token from the
provided request header.
// csrfTokenFromForm returns a ` csrfTokenExtractor ` that extracts token from the // provided request header .
func csrfTokenFromHeader(header string) csrfTokenExtractor {
	return func(ctx *fasthttp.RequestCtx) ([]byte, error) {
		srcToken := ctx.Request.Header.Peek(header)
		return copyCSRFTokenFromRequest(srcToken)
	}
}
func csrfTokenFromHeader ( header string ) csrfTokenExtractor { return func ( ctx * fasthttp . RequestCtx ) ( [ ] byte , error ) { srcToken := ctx . Request . Header . Peek ( header ) return copyCSRFTokenFromRequest ( srcToken ) } }
csrfTokenFromForm returns a `csrfTokenExtractor` that extracts token from the
provided request header.
csrfTokenFromForm returns a ` csrfTokenExtractor ` that extracts token from the provided request header .