Lines Matching refs:this

48     $this->setUrl($url);
49 $this->setRequestMethod($method);
50 $this->setRequestHeaders($headers);
51 $this->setPostBody($postBody);
55 $this->userAgent = self::USER_AGENT_SUFFIX;
57 $this->userAgent = $apiConfig['application_name'] . " " . self::USER_AGENT_SUFFIX;
68 if ($pos = strpos($this->url, '?')) {
69 return substr($this->url, 0, $pos);
71 return $this->url;
80 if ($pos = strpos($this->url, '?')) {
81 $queryStr = substr($this->url, $pos + 1);
93 return (int) $this->responseHttpCode;
100 $this->responseHttpCode = $responseHttpCode;
107 return $this->responseHeaders;
114 return $this->responseBody;
123 if ($this->responseHeaders) {
124 $headers = array_merge($this->responseHeaders, $headers);
127 $this->responseHeaders = $headers;
136 return isset($this->responseHeaders[$key])
137 ? $this->responseHeaders[$key]
145 $this->responseBody = $responseBody;
153 return $this->url;
160 return $this->requestMethod;
167 return $this->requestHeaders;
176 return isset($this->requestHeaders[$key])
177 ? $this->requestHeaders[$key]
185 return $this->postBody;
193 $this->url = $url;
200 $this->url = $apiConfig['basePath'] . $url;
210 $this->requestMethod = strtoupper($method);
219 if ($this->requestHeaders) {
220 $headers = array_merge($this->requestHeaders, $headers);
222 $this->requestHeaders = $headers;
229 $this->postBody = $postBody;
237 $this->userAgent = $userAgent;
244 return $this->userAgent;
254 $key = $this->getUrl();
256 if (isset($this->accessKey)) {
257 $key .= $this->accessKey;
260 if (isset($this->requestHeaders['authorization'])) {
261 $key .= $this->requestHeaders['authorization'];
269 $rawCacheControl = $this->getResponseHeader('cache-control');
284 foreach($this->batchHeaders as $key => $val) {
291 $path = parse_url($this->getUrl(), PHP_URL_PATH);
292 $str .= $this->getRequestMethod() . ' ' . $path . " HTTP/1.1\n";
293 foreach($this->getRequestHeaders() as $key => $val) {
297 if ($this->getPostBody()) {
299 $str .= $this->getPostBody();