Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

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

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

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

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

getCachedRequest(Google_Http_Request $request)   X-Ref

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

processEntityRequest(Google_Http_Request $request)   X-Ref

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

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.

return: array
param: $respData
param: $headerSize

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

return: array
param: rawHeaders array or string

parseStringHeaders($rawHeaders)   X-Ref
No description

parseArrayHeaders($rawHeaders)   X-Ref
No description