Lines Matching refs:stack
18 private $stack = []; variable in GuzzleHttp\\HandlerStack
42 $stack = new self($handler ?: choose_handler());
43 $stack->push(Middleware::httpErrors(), 'http_errors');
44 $stack->push(Middleware::redirect(), 'allow_redirects');
45 $stack->push(Middleware::cookies(), 'cookies');
46 $stack->push(Middleware::prepareBody(), 'prepare_body');
48 return $stack;
82 $stack = [];
84 $stack[] = "0) Handler: " . $this->debugCallable($this->handler);
88 foreach (array_reverse($this->stack) as $tuple) {
93 $stack[] = $str;
96 foreach (array_keys($stack) as $k) {
97 $result .= "< {$stack[$k]}\n";
133 array_unshift($this->stack, [$middleware, $name]);
145 $this->stack[] = [$middleware, $name];
182 $this->stack = array_values(array_filter(
183 $this->stack,
202 foreach (array_reverse($this->stack) as $fn) {
218 foreach ($this->stack as $k => $v) {
243 array_unshift($this->stack, $tuple);
245 $replacement = [$tuple, $this->stack[$idx]];
246 array_splice($this->stack, $idx, 1, $replacement);
248 } elseif ($idx === count($this->stack) - 1) {
249 $this->stack[] = $tuple;
251 $replacement = [$this->stack[$idx], $tuple];
252 array_splice($this->stack, $idx, 1, $replacement);