Total Complexity | 6 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | final class HttpConfig extends InjectableConfig |
||
18 | { |
||
19 | public const CONFIG = 'http'; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $config = [ |
||
25 | 'basePath' => '/', |
||
26 | 'headers' => [ |
||
27 | 'Content-Type' => 'text/html; charset=UTF-8', |
||
28 | ], |
||
29 | 'middleware' => [], |
||
30 | 'chunkSize' => null, |
||
31 | ]; |
||
32 | |||
33 | 9 | public function getBasePath(): string |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * Initial set of headers. |
||
40 | */ |
||
41 | 154 | public function getBaseHeaders(): array |
|
44 | } |
||
45 | |||
46 | /** |
||
47 | * Initial middleware set. |
||
48 | * |
||
49 | * @return array|Autowire[] |
||
50 | */ |
||
51 | 129 | public function getMiddleware(): array |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * If chunkSize isn't provided - using default values |
||
58 | */ |
||
59 | 2 | public function getChunkSize(): ?int |
|
68 |