MediaWiki
1.28.0
|
Example virtual rest service for OpenStack Swift : caching support (APC/memcached) More...
Public Member Functions | |
__construct (array $params) | |
onRequests (array $reqs, Closure $idGeneratorFunc) | |
onResponses (array $reqs, Closure $idGeneratorFunc) | |
Public Member Functions inherited from VirtualRESTService | |
__construct (array $params) | |
getName () | |
Return the name of this service, in a form suitable for error reporting or debugging. More... | |
onRequests (array $reqs, Closure $idGeneratorFunc) | |
Prepare virtual HTTP(S) requests (for this service) for execution. More... | |
onResponses (array $reqs, Closure $idGeneratorFunc) | |
Mangle or replace virtual HTTP(S) requests which have been responded to. More... | |
Protected Member Functions | |
applyAuthResponse (array $req) | |
needsAuthRequest () | |
Protected Attributes | |
string | $authCachedReason = null |
int | $authCachedStatus = null |
array | $authCreds |
int | $authErrorTimestamp = null |
UNIX timestamp. More... | |
int | $authSessionTimestamp = 0 |
UNIX timestamp. More... | |
Protected Attributes inherited from VirtualRESTService | |
array | $params = [] |
Key/value map. More... | |
Example virtual rest service for OpenStack Swift : caching support (APC/memcached)
Definition at line 28 of file SwiftVirtualRESTService.php.
SwiftVirtualRESTService::__construct | ( | array | $params | ) |
array | $params | Key/value map
|
Definition at line 47 of file SwiftVirtualRESTService.php.
|
protected |
Definition at line 73 of file SwiftVirtualRESTService.php.
References list.
Referenced by onResponses().
|
protected |
Definition at line 58 of file SwiftVirtualRESTService.php.
References $authCachedStatus.
Referenced by onRequests().
SwiftVirtualRESTService::onRequests | ( | array | $reqs, |
Closure | $idGeneratorFunc | ||
) |
Definition at line 96 of file SwiftVirtualRESTService.php.
References $authCachedReason, $authCachedStatus, $req, as, and needsAuthRequest().
Referenced by onResponses().
SwiftVirtualRESTService::onResponses | ( | array | $reqs, |
Closure | $idGeneratorFunc | ||
) |
Definition at line 151 of file SwiftVirtualRESTService.php.
References $authCachedReason, $authCachedStatus, $req, applyAuthResponse(), as, and onRequests().
|
protected |
Definition at line 38 of file SwiftVirtualRESTService.php.
Referenced by onRequests(), and onResponses().
|
protected |
Definition at line 36 of file SwiftVirtualRESTService.php.
Referenced by needsAuthRequest(), onRequests(), and onResponses().
|
protected |
Definition at line 30 of file SwiftVirtualRESTService.php.
|
protected |
UNIX timestamp.
Definition at line 34 of file SwiftVirtualRESTService.php.
|
protected |
UNIX timestamp.
Definition at line 32 of file SwiftVirtualRESTService.php.