Lines Matching refs:options
63 public function __invoke(RequestInterface $request, array $options) argument
69 if (isset($options['delay']) && is_numeric($options['delay'])) {
70 usleep($options['delay'] * 1000);
74 $this->lastOptions = $options;
77 if (isset($options['on_headers'])) {
78 if (!is_callable($options['on_headers'])) {
82 $options['on_headers']($response);
90 $response = call_user_func($response, $request, $options);
98 function ($value) use ($request, $options) {
99 $this->invokeStats($request, $options, $value);
103 if (isset($options['sink'])) {
105 $sink = $options['sink'];
118 function ($reason) use ($request, $options) {
119 $this->invokeStats($request, $options, null, $reason);
185 array $options, argument
189 if (isset($options['on_stats'])) {
190 $transferTime = isset($options['transfer_time']) ? $options['transfer_time'] : 0;
192 call_user_func($options['on_stats'], $stats);