typo, parameter and type fixes
[mdref/mdref-http] / http / Client / requeue.md
1 # http\Client http\Client::requeue(http\Client\Request $request[, callable $cb])
2
3 Requeue an http\Client\Request.
4
5 The difference simply is, that this method, in contrast to http\Client::enqueue(), does not throw an http\Exception when the request to queue is already enqueued and dequeues it automatically prior enqueueing it again.
6
7
8 ## Params:
9
10 * http\Client\Request $request
11 The request to queue.
12 * Optional callable $cb as function(\http\Response $response) : ?bool
13 A callback to automatically call when the request has finished.
14
15 ## Returns:
16
17 * http\Client, self.
18
19 ## Throws:
20
21 * http\Exception\InvalidArgumentException
22 * http\Exception\RuntimeException