A class to assist with the parsing of Origin header according to the RFC 6454 https://tools.ietf.org/html/rfc6454#section-7.
More...
|
| getOriginList () |
| Get the list of origins.
|
|
| getSingleOrigin () |
|
| isMultiOrigin () |
| Whether the Origin header contains multiple origins.
|
|
| isNullOrigin () |
| Whether the Origin header was explicitly set to null .
|
|
| match (array $allowList, array $excludeList) |
| Check whether all the origins match at least one of the rules in $allowList.
|
|
|
static | parseHeaderList (array $headerList) |
| Parse an Origin header list as returned by RequestInterface::getHeader().
|
|
A class to assist with the parsing of Origin header according to the RFC 6454 https://tools.ietf.org/html/rfc6454#section-7.
- Since
- 1.36
Definition at line 12 of file Origin.php.
◆ getOriginList()
MediaWiki\Rest\HeaderParser\Origin::getOriginList |
( |
| ) |
|
Get the list of origins.
- Returns
- string[]
Definition at line 57 of file Origin.php.
◆ getSingleOrigin()
MediaWiki\Rest\HeaderParser\Origin::getSingleOrigin |
( |
| ) |
|
◆ isMultiOrigin()
MediaWiki\Rest\HeaderParser\Origin::isMultiOrigin |
( |
| ) |
|
Whether the Origin header contains multiple origins.
- Returns
- bool
Definition at line 48 of file Origin.php.
◆ isNullOrigin()
MediaWiki\Rest\HeaderParser\Origin::isNullOrigin |
( |
| ) |
|
Whether the Origin header was explicitly set to null
.
- Returns
- bool
Definition at line 39 of file Origin.php.
◆ match()
MediaWiki\Rest\HeaderParser\Origin::match |
( |
array | $allowList, |
|
|
array | $excludeList ) |
Check whether all the origins match at least one of the rules in $allowList.
- Parameters
-
string[] | $allowList | |
string[] | $excludeList | |
- Returns
- bool
Definition at line 77 of file Origin.php.
◆ parseHeaderList()
static MediaWiki\Rest\HeaderParser\Origin::parseHeaderList |
( |
array | $headerList | ) |
|
|
static |
Parse an Origin header list as returned by RequestInterface::getHeader().
- Parameters
-
- Returns
- self
Definition at line 28 of file Origin.php.
◆ HEADER_NAME
const MediaWiki\Rest\HeaderParser\Origin::HEADER_NAME = 'Origin' |
The documentation for this class was generated from the following file: