Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

Differences Between: [Versions 310 and 402] [Versions 311 and 402] [Versions 39 and 402] [Versions 400 and 402] [Versions 401 and 402]

(no description)

File Size: 179 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Google_Http_REST:: (4 methods):
  execute()
  doExecute()
  decodeHttpResponse()
  createRequestUri()


Class: Google_Http_REST  - X-Ref

This class implements the RESTful transport of apiServiceRequest()'s

execute(Google_Client $client, Google_Http_Request $req)   X-Ref
Executes a Google_Http_Request and (if applicable) automatically retries
when errors occur.

param: Google_Client $client
param: Google_Http_Request $req
return: array decoded result

doExecute(Google_Client $client, Google_Http_Request $req)   X-Ref
Executes a Google_Http_Request

param: Google_Client $client
param: Google_Http_Request $req
return: array decoded result

decodeHttpResponse($response, Google_Client $client = null)   X-Ref
Decode an HTTP Response.

param: Google_Http_Request $response The http response to be decoded.
param: Google_Client $client
return: mixed|null

createRequestUri($servicePath, $restPath, $params)   X-Ref
Parse/expand request parameters and create a fully qualified
request uri.

param: string $servicePath
param: string $restPath
param: array $params
return: string $requestUrl