Lines Matching refs:request
45 * @param Google_HttpRequest $request
49 public function authenticatedRequest(Google_HttpRequest $request) { argument
50 $request = Google_Client::$auth->sign($request);
51 return $this->makeRequest($request);
57 * @param Google_HttpRequest $request the http request to be executed
62 public function makeRequest(Google_HttpRequest $request) { argument
64 $cached = $this->getCachedRequest($request);
66 if (!$this->checkMustRevaliadateCachedRequest($cached, $request)) {
75 if (array_key_exists($request->getRequestMethod(),
77 $request = $this->processEntityRequest($request);
80 if ($request->getPostBody()) {
81 $requestHttpContext["content"] = $request->getPostBody();
84 $requestHeaders = $request->getRequestHeaders();
93 $requestHttpContext["method"] = $request->getRequestMethod();
94 $requestHttpContext["user_agent"] = $request->getUserAgent();
110 $response_data = file_get_contents($request->getUrl(),
127 $request->setResponseHttpCode($respHttpCode);
128 $request->setResponseHeaders($responseHeaders);
129 $request->setResponseBody($response_data);
132 $this->setCachedRequest($request);
133 return $request;