| Conditions | 4 |
| Paths | 11 |
| Total Lines | 32 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | protected function getResponse():HTTPResponseInterface{ |
||
| 46 | |||
| 47 | $url = new URL( |
||
| 48 | explode('?', $this->requestURL)[0], |
||
| 49 | $this->requestParams, |
||
| 50 | $this->requestMethod, |
||
| 51 | $this->requestBody, |
||
| 52 | $this->requestHeaders |
||
| 53 | ); |
||
| 54 | |||
| 55 | $response = $this->http->fetch($url); |
||
| 56 | |||
| 57 | return new HTTPResponse([ |
||
| 58 | 'url' => $url->__toString(), |
||
| 59 | 'headers' => $response->headers, |
||
| 60 | 'body' => $response->body->content, |
||
| 61 | ]); |
||
| 62 | } |
||
| 63 | |||
| 64 | } |
||
| 65 |