Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Abstract IO base class

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

Defines 1 class


Class: Google_IO_Abstract  - X-Ref

__construct(Google_Client $client)   X-Ref
No description

setCachedRequest(Google_Http_Request $request)   X-Ref

param: Google_Http_Request $request
return: bool Returns true if the insertion was successful.

makeRequest(Google_Http_Request $request)   X-Ref
Execute an HTTP Request

param: Google_Http_Request $request the http request to be executed
return: Google_Http_Request http request with the response http code,

getCachedRequest(Google_Http_Request $request)   X-Ref

param: Google_Http_Request $request
return: Google_Http_Request|bool Returns the cached object or

processEntityRequest(Google_Http_Request $request)   X-Ref

param: Google_Http_Request $request
return: Google_Http_Request Processed request with the enclosed entity.

checkMustRevalidateCachedRequest($cached, $request)   X-Ref
Check if an already cached request must be revalidated, and if so update
the request with the correct ETag headers.

param: Google_Http_Request $cached A previously cached response.
param: Google_Http_Request $request The outbound request.

updateCachedRequest($cached, $responseHeaders)   X-Ref
Update a cached request, using the headers from the last response.

param: Google_Http_Request $cached A previously cached response.
param: mixed Associative array of response headers from the last request.

parseHttpResponse($respData, $headerSize)   X-Ref
Used by the IO lib and also the batch processing.

param: $respData
param: $headerSize
return: array

getHttpResponseHeaders($rawHeaders)   X-Ref
Parse out headers from raw headers

param: rawHeaders array or string
return: array

parseStringHeaders($rawHeaders)   X-Ref
No description

parseArrayHeaders($rawHeaders)   X-Ref
No description