typAccepted

Whether a token's typ header is one of the accepted types. The match is case-insensitive and ignores an optional application/ media-type prefix on either side (RFC 7515 §4.1.9). An empty accepted disables the check; an absent (empty) typ matches nothing and is therefore rejected.

package @safe @safe
bool
typAccepted
(
string[] accepted
,
string typ
)