| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 32 | public function __invoke(Task $task): Result |
||
| 33 | { |
||
| 34 | $response = $this->httpClient->request($task->getMethod(), $task->getUrl(), $task->getOptions()); |
||
| 35 | $content = $response->getContent(); |
||
| 36 | $output = \array_merge($response->getInfo('response_headers'), ['', $content]); |
||
| 37 | |||
| 38 | return Result::successful($task, \implode("\n", $output)); |
||
| 39 | } |
||
| 46 |