Download the PHP package oasys/negotiator without Composer
On this page you can find all versions of the php package oasys/negotiator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download oasys/negotiator
More information about oasys/negotiator
Files in oasys/negotiator
Download oasys/negotiator
More information about oasys/negotiator
Files in oasys/negotiator
Vendor oasys
Package negotiator
Short Description Strict RFC-compliant HTTP content negotiator with extended language filtering support
License MIT
Package negotiator
Short Description Strict RFC-compliant HTTP content negotiator with extended language filtering support
License MIT
Please rate this library. Is it a good library?
Informations about the package negotiator
Oasys Negotiator
Strict RFC-compliant HTTP content negotiator.
Implements HTTP negotiation semantics defined in RFC 9110 and language matching defined in RFC 4647.
- Negotiation for
Accept,Accept-Language,Accept-Encoding, andAccept-Charsetheaders - Deterministic tie-breaking and stable selection
- Basic and extended language filtering
- Strict token and quoted-string parsing with correct handling of quoted parameters and escaped characters
- Quality (
q) weighting and wildcard handling - Media range specificity precedence (
text/plain;charset=utf-8>text/plain>text/*>*/*)
Installation
Quick start
Matching
Selection is determined by:
- quality
- match specificity
- header order
- supported list order
Accept header
Accept-Language header
Extended language filtering
Basic language filtering
Accept-Encoding header
If your application does not support unencoded content, you can disable it by setting identity: false.
Accept-Charset header
Design notes
- Matching is case-insensitive
- Whitespace around members and separators is ignored
- Invalid header members are dropped; invalid supported values throw an exception
- Duplicate header members are evaluated individually; members with duplicate parameters are dropped
- Best match is formatted exactly as listed in supported values
- No match returns
null
All versions of negotiator with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package oasys/negotiator contains the following files
Loading the files please wait ...