a94b56d45dcbc73b63c5c1e3f75a7bf60d74007b
[mdref/mdref-http] / http / Client / Request / setOptions.md
1 # http\Client\Request http\Client\Request::setOptions([array $options = NULL])
2
3 Set client options.
4 See http\Client::setOptions() and http\Client\Curl.
5
6 Request specific options override general options which were set in the client.
7
8 > ***NOTE:***
9 > Only options specified prior enqueueing a request are applied to the request.
10
11 ## Params:
12
13 * Optional array $options = NULL
14 The options to set.
15
16 ## Returns:
17
18 * http\Client\Request, self.
19
20 ## Throws:
21
22 * http\Exception\InvalidArgumentException