1 | <?php |
||
10 | trait HttpHeadersTrait { |
||
11 | /** |
||
12 | * @return string |
||
13 | * @see HttpResponseA::getServerProtocol |
||
14 | */ |
||
15 | abstract public function getServerProtocol(); |
||
16 | /** |
||
17 | * @return int |
||
18 | * @see HttpResponseA::getStatus |
||
19 | */ |
||
20 | abstract public function getStatus(); |
||
21 | /** |
||
22 | * @return string |
||
23 | * @see HttpResponseA::getLocation |
||
24 | */ |
||
25 | abstract public function getLocation(); |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | * @see HttpResponseA::getContentType |
||
30 | */ |
||
31 | abstract public function getContentType(); |
||
32 | /** |
||
33 | * @return string |
||
34 | * @see HttpResponseA::getContentDisposition |
||
35 | */ |
||
36 | abstract public function getContentDisposition(); |
||
37 | /** |
||
38 | * @return string |
||
39 | * @see HttpResponseA::getContentEncoding |
||
40 | */ |
||
41 | abstract public function getContentEncoding(); |
||
42 | /** |
||
43 | * @return string |
||
44 | * @see HttpResponseA::getContentLanguage |
||
45 | */ |
||
46 | abstract public function getContentLanguage(); |
||
47 | /** |
||
48 | * @return int |
||
49 | * @see HttpResponseA::getContentLength |
||
50 | */ |
||
51 | abstract public function getContentLength(); |
||
52 | /** |
||
53 | * @return string |
||
54 | * @see HttpResponseA::getContentLocation |
||
55 | */ |
||
56 | abstract public function getContentLocation(); |
||
57 | /** |
||
58 | * @return string |
||
59 | * @see HttpResponseA::getContentMd5 |
||
60 | */ |
||
61 | abstract public function getContentMd5(); |
||
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | * @see HttpResponseA::getCacheControl |
||
66 | */ |
||
67 | abstract public function getCacheControl(); |
||
68 | /** |
||
69 | * @return string |
||
70 | * @see HttpResponseA::getDate |
||
71 | */ |
||
72 | abstract public function getDate(); |
||
73 | /** |
||
74 | * @return string |
||
75 | * @see HttpResponseA::getETag |
||
76 | */ |
||
77 | abstract public function getETag(); |
||
78 | /** |
||
79 | * @return string |
||
80 | * @see HttpResponseA::getExpires |
||
81 | */ |
||
82 | abstract public function getExpires(); |
||
83 | /** |
||
84 | * @return string |
||
85 | * @see HttpResponseA::getLastModified |
||
86 | */ |
||
87 | abstract public function getLastModified(); |
||
88 | |||
89 | /** |
||
90 | * @return array |
||
91 | * @see HttpResponseA::getCustomHeaders |
||
92 | */ |
||
93 | abstract protected function getCustomHeaders(); |
||
94 | |||
95 | |||
96 | /** |
||
97 | * @return bool |
||
98 | */ |
||
99 | 1 | public function outputStatusHeader () { |
|
106 | |||
107 | /** |
||
108 | * @return bool |
||
109 | */ |
||
110 | 1 | protected function outputLocationHeaders() { |
|
119 | |||
120 | /** |
||
121 | * @return bool |
||
122 | */ |
||
123 | 1 | public function outputContentHeaders() { |
|
155 | |||
156 | /** |
||
157 | * @return bool |
||
158 | */ |
||
159 | 1 | protected function outputCachingHeaders() { |
|
184 | |||
185 | /** |
||
186 | * @return bool |
||
187 | */ |
||
188 | 1 | protected function outputCustomHeaders () { |
|
202 | |||
203 | /** |
||
204 | * @return bool |
||
205 | */ |
||
206 | 1 | public function outputHeaders() { |
|
221 | } |
||
222 |