Lines Matching refs:request
58 * @param Google_HttpRequest $request
62 public function authenticatedRequest(Google_HttpRequest $request) { argument
63 $request = Google_Client::$auth->sign($request);
64 return $this->makeRequest($request);
70 * @param Google_HttpRequest $request the http request to be executed
75 public function makeRequest(Google_HttpRequest $request) { argument
77 $cached = $this->getCachedRequest($request);
79 if (!$this->checkMustRevaliadateCachedRequest($cached, $request)) {
84 if (array_key_exists($request->getRequestMethod(),
86 $request = $this->processEntityRequest($request);
91 curl_setopt($ch, CURLOPT_URL, $request->getUrl());
92 if ($request->getPostBody()) {
93 curl_setopt($ch, CURLOPT_POSTFIELDS, $request->getPostBody());
96 $requestHeaders = $request->getRequestHeaders();
105 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $request->getRequestMethod());
106 curl_setopt($ch, CURLOPT_USERAGENT, $request->getUserAgent());
137 $request->setResponseHttpCode($respHttpCode);
138 $request->setResponseHeaders($responseHeaders);
139 $request->setResponseBody($responseBody);
142 $this->setCachedRequest($request);
144 return $request;