mdref.json config
[mdref/mdref-http] / http / Client / configure.md
1 # http\Client http\Client::configure(array $configuration)
2
3 Configure the client's low level options.
4
5 > ***NOTE:***
6 > This method has been added in v2.3.0.
7
8 ## Params:
9
10 * array $configuration
11 Key/value pairs of low level options.
12 See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
13
14 ## Returns:
15
16 * http\Client, self.
17
18 ## Throws:
19
20 * http\Exception\InvalidArgumentException
21 * http\Exception\UnexpectedValueException
22
23 ## Example:
24
25 <?php
26
27 $client = new http\Client("curl");
28 $client->configure([
29 "max_host_connections" => 8,
30 "pipelining" => true,
31 ]);
32
33 ?>