AcceptSpecificity
: int
in package
HTTP accept specificity enum
Controls how strict an AcceptHeader/Server\Request match must be. Maps directly onto AcceptHeader::matches()'s internal per-entry specificity tiers (exact type/subtype match = 2, a subtype wildcard = 1, a bare full wildcard = 0) - the enum's backing value IS that threshold, so enforcing a minimum is a direct integer comparison, no translation table needed.
Tags
Table of Contents
Cases
- Any
- A bare full wildcard entry (any type, any subtype) may satisfy the match - default, today's behavior
- Exact = 2
- Only a literal type/subtype match satisfies
- Loose = 1
- A subtype wildcard or an exact type/subtype match satisfies; a bare full wildcard entry does not
Cases
Any
A bare full wildcard entry (any type, any subtype) may satisfy the match - default, today's behavior
Loose
A subtype wildcard or an exact type/subtype match satisfies; a bare full wildcard entry does not
Exact
Only a literal type/subtype match satisfies