This repository was archived by the owner on Jan 30, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathHeaderLoader.php
More file actions
79 lines (76 loc) · 4.06 KB
/
HeaderLoader.php
File metadata and controls
79 lines (76 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
/**
* @see https://github.com/zendframework/zend-http for the canonical source repository
* @copyright Copyright (c) 2005-2017 Zend Technologies USA Inc. (http://www.zend.com)
* @license https://github.com/zendframework/zend-http/blob/master/LICENSE.md New BSD License
*/
namespace Zend\Http;
use Zend\Loader\PluginClassLoader;
/**
* Plugin Class Loader implementation for HTTP headers
*/
class HeaderLoader extends PluginClassLoader
{
/**
* @var array Pre-aliased Header plugins
*/
protected $plugins = [
'accept' => Header\Accept::class,
'acceptcharset' => Header\AcceptCharset::class,
'acceptencoding' => Header\AcceptEncoding::class,
'acceptlanguage' => Header\AcceptLanguage::class,
'acceptranges' => Header\AcceptRanges::class,
'age' => Header\Age::class,
'allow' => Header\Allow::class,
'authenticationinfo' => Header\AuthenticationInfo::class,
'authorization' => Header\Authorization::class,
'cachecontrol' => Header\CacheControl::class,
'connection' => Header\Connection::class,
'contentdisposition' => Header\ContentDisposition::class,
'contentencoding' => Header\ContentEncoding::class,
'contentlanguage' => Header\ContentLanguage::class,
'contentlength' => Header\ContentLength::class,
'contentlocation' => Header\ContentLocation::class,
'contentmd5' => Header\ContentMD5::class,
'contentrange' => Header\ContentRange::class,
'contentsecuritypolicy' => Header\ContentSecurityPolicy::class,
'contenttransferencoding' => Header\ContentTransferEncoding::class,
'contenttype' => Header\ContentType::class,
'cookie' => Header\Cookie::class,
'date' => Header\Date::class,
'etag' => Header\Etag::class,
'expect' => Header\Expect::class,
'expires' => Header\Expires::class,
'featurepolicy' => Header\FeaturePolicy::class,
'from' => Header\From::class,
'host' => Header\Host::class,
'ifmatch' => Header\IfMatch::class,
'ifmodifiedsince' => Header\IfModifiedSince::class,
'ifnonematch' => Header\IfNoneMatch::class,
'ifrange' => Header\IfRange::class,
'ifunmodifiedsince' => Header\IfUnmodifiedSince::class,
'keepalive' => Header\KeepAlive::class,
'lastmodified' => Header\LastModified::class,
'location' => Header\Location::class,
'maxforwards' => Header\MaxForwards::class,
'origin' => Header\Origin::class,
'pragma' => Header\Pragma::class,
'proxyauthenticate' => Header\ProxyAuthenticate::class,
'proxyauthorization' => Header\ProxyAuthorization::class,
'range' => Header\Range::class,
'referer' => Header\Referer::class,
'refresh' => Header\Refresh::class,
'retryafter' => Header\RetryAfter::class,
'server' => Header\Server::class,
'setcookie' => Header\SetCookie::class,
'te' => Header\TE::class,
'trailer' => Header\Trailer::class,
'transferencoding' => Header\TransferEncoding::class,
'upgrade' => Header\Upgrade::class,
'useragent' => Header\UserAgent::class,
'vary' => Header\Vary::class,
'via' => Header\Via::class,
'warning' => Header\Warning::class,
'wwwauthenticate' => Header\WWWAuthenticate::class,
];
}