Lines Matching full:dokuhttpclient
26 * You can query the $dokuHTTPClient for more result headers later
28 …* @param \DokuHTTPClient $dokuHTTPClient an Instance of \DokuHTTPClient which will make the request
30 … array $headers This headers will be merged with the headers in the DokuHTTPClient
38 …protected function makeHTTPRequest(\DokuHTTPClient $dokuHTTPClient, $url, $headers, array $data, $… argument
40 $dokuHTTPClient->headers = array_merge($dokuHTTPClient->headers ?: [], $headers);
43 $success = $dokuHTTPClient->sendRequest($url, $dataToBeSend, $method);
45 throw new HTTPRequestException('request error', $dokuHTTPClient, $url, $method);
48 if (!$success || $dokuHTTPClient->status < 200 || $dokuHTTPClient->status > 206) {
49 if ($dokuHTTPClient->status >= 500) {
50 throw new ExternalServerException('request error', $dokuHTTPClient, $url, $method);
52 throw new HTTPRequestException('request error', $dokuHTTPClient, $url, $method);
54 return json_decode($dokuHTTPClient->resp_body, true);