47 ' is deprecated since 1.41. Use MultiHttpClient from the HttpRequestFactory.'
59 return $this->params[
'name'] ?? static::class;
84 public function onRequests( array $reqs, Closure $idGeneratorFunc ) {
86 foreach ( $reqs as $key => $req ) {
90 $parts = array_map(
'rawurlencode', explode(
'/', $req[
'url'] ) );
91 $req[
'url'] = $this->params[
'baseUrl'] .
'/' . implode(
'/', $parts );
119 public function onResponses( array $reqs, Closure $idGeneratorFunc ) {
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
Virtual HTTP service instance that can be mounted on to a VirtualRESTService.
array $params
Key/value map.
onResponses(array $reqs, Closure $idGeneratorFunc)
Mangle or replace virtual HTTP(S) requests which have been responded to.
__construct(array $params)
onRequests(array $reqs, Closure $idGeneratorFunc)
Prepare virtual HTTP(S) requests (for this service) for execution.
getName()
Return the name of this service, in a form suitable for error reporting or debugging.