headers = array_merge($dokuHTTPClient->headers ?: [], $headers); $dataToBeSend = json_encode($data); try { $success = $dokuHTTPClient->sendRequest($url, $dataToBeSend, $method); } catch (\HTTPClientException $e) { throw new HTTPRequestException('request error', $dokuHTTPClient, $url, $method); } if (!$success || $dokuHTTPClient->status < 200 || $dokuHTTPClient->status > 206) { if ($dokuHTTPClient->status >= 500) { throw new ExternalServerException('request error', $dokuHTTPClient, $url, $method); } throw new HTTPRequestException('request error', $dokuHTTPClient, $url, $method); } return json_decode($dokuHTTPClient->resp_body, true); } public function getRepoPageText() { return ''; } }