clarification
[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:** Only options specified prior enqueueing a request are applied to the request.
9
10 ## Params:
11
12 * Optional array $options = NULL
13 The options to set.
14
15 ## Returns:
16
17 * http\Client\Request, self.
18
19 ## Throws:
20
21 * http\Client\InvalidArgumentException