[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/vendor/guzzlehttp/guzzle/src/Handler/ -> MockHandler.php (summary)

(no description)

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

Defines 1 class

MockHandler:: (9 methods):
  createWithMiddleware()
  __construct()
  __invoke()
  append()
  getLastRequest()
  getLastOptions()
  count()
  reset()
  invokeStats()


Class: MockHandler  - X-Ref

Handler that returns responses or throw exceptions from a queue.

createWithMiddleware(array $queue = null,callable $onFulfilled = null,callable $onRejected = null)   X-Ref
Creates a new MockHandler that uses the default handler stack list of
middlewares.

param: array $queue Array of responses, callables, or exceptions.
param: callable $onFulfilled Callback to invoke when the return value is fulfilled.
param: callable $onRejected  Callback to invoke when the return value is rejected.
return: HandlerStack

__construct(array $queue = null,callable $onFulfilled = null,callable $onRejected = null)   X-Ref
The passed in value must be an array of
{@see Psr7\Http\Message\ResponseInterface} objects, Exceptions,
callables, or Promises.

param: array $queue
param: callable $onFulfilled Callback to invoke when the return value is fulfilled.
param: callable $onRejected  Callback to invoke when the return value is rejected.

__invoke(RequestInterface $request, array $options)   X-Ref
No description

append()   X-Ref
No description

getLastRequest()   X-Ref
Get the last received request.

return: RequestInterface

getLastOptions()   X-Ref
Get the last received request options.

return: array

count()   X-Ref
Returns the number of remaining items in the queue.

return: int

reset()   X-Ref
No description

invokeStats(RequestInterface $request,array $options,ResponseInterface $response = null,$reason = null)   X-Ref
No description



Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1