Lines Matching full:httpclient
5 use dokuwiki\HTTP\HTTPClient;
10 * This implements a XML-RPC client using our own HTTPClient
12 * Note: this now inherits from the IXR library's client and no longer from HTTPClient. Instead composition
17 /** @var HTTPClient */
18 protected $httpClient;
34 $this->httpClient = new HTTPClient();
35 $this->httpClient->timeout = $timeout;
48 $this->httpClient->headers = array_merge($this->httpClient->headers, $this->headers);
50 if (!$this->httpClient->sendRequest($this->posturl, $xml, 'POST')) {
51 $this->handleError(-32300, 'transport error - ' . $this->httpClient->error);
56 if ($this->httpClient->status < 200 || $this->httpClient->status > 206) {
57 $this->handleError(-32300, 'transport error - HTTP status ' . $this->httpClient->status);
62 $this->message = new Message($this->httpClient->resp_body);
80 * @return HTTPClient
84 return $this->httpClient;