Documentation

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
category

Pop

author

Nick Sagona, III nick@popphp.org

copyright

Copyright (c) 2009-2026 Nick Sagona, III

license

https://www.popphp.org/license New BSD License

version
6.0.0

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


        
On this page

Search results