Home
last modified time | relevance | path

Searched refs:dokuHTTPClient (Results 1 – 4 of 4) sorted by relevance

/plugin/issuelinks/services/
H A DAbstractService.php38 …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);
H A DGitHub.service.php25 protected $dokuHTTPClient; variable in dokuwiki\\plugin\\issuelinks\\services\\GitHub
104 $headers = $this->dokuHTTPClient->resp_headers;
147 if ($this->dokuHTTPClient->resp_headers['x-ratelimit-remaining'] < 500) {
150 dformat($this->dokuHTTPClient->resp_headers['x-ratelimit-reset'])
157 if (empty($this->dokuHTTPClient->resp_headers['link'])) {
160 $links = $utils->parseHTTPLinkHeaders($this->dokuHTTPClient->resp_headers['link']);
194 return $this->makeHTTPRequest($this->dokuHTTPClient, $url, $requestHeaders, $data, $method);
261 $status = $this->dokuHTTPClient->status;
291 $status = $this->dokuHTTPClient->status;
573 $headers = $this->dokuHTTPClient->resp_headers;
H A DGitLab.service.php18 protected $dokuHTTPClient; variable in dokuwiki\\plugin\\issuelinks\\services\\GitLab
27 $this->dokuHTTPClient = new \DokuHTTPClient();
135 return $this->makeHTTPRequest($this->dokuHTTPClient, $url, $requestHeaders, $data, $method);
247 $status = $this->dokuHTTPClient->status;
267 $status = $this->dokuHTTPClient->status;
470 $headers = $this->dokuHTTPClient->resp_headers;
H A DJira.service.php23 protected $dokuHTTPClient; variable in dokuwiki\\plugin\\issuelinks\\services\\Jira
33 $this->dokuHTTPClient = new \DokuHTTPClient();
155 return $this->makeHTTPRequest($this->dokuHTTPClient, $url, $requestHeaders, $data, $method);