PluginProbe
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution / trunk
Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution vtrunk
2.0.1 trunk 1.0.0 1.1.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.6.0 1.6.1 1.7.0 1.7.1 1.8.0 1.9.0 2.0.0
solid-performance / src / Performance / Http / Request_Header_Factory.php

Request_Header_Factory.php in Solid Performance – Your No-Code Caching, Performance, & Page Speed Solution trunk, at src/Performance/Http/Request_Header_Factory.php

30 lines 494 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Creates a header instance with HTTP request headers.
4 *
5 * @package SolidWP\Performance
6 */
7
8 declare( strict_types=1 );
9
10 namespace SolidWP\Performance\Http;
11
12 /**
13 * Creates a header instance using HTTP request headers.
14 *
15 * @package SolidWP\Performance
16 */
17 class Request_Header_Factory {
18
19 /**
20 * Make a header instance using HTTP request headers.
21 *
22 * @return Header
23 */
24 public function make(): Header {
25 $headers = getallheaders();
26
27 return new Header( $headers );
28 }
29 }
30