typo, parameter and type fixes
[mdref/mdref-http] / http / Client / getAvailableConfiguration.md
1 # array http\Client::getAvailableConfiguration()
2
3 Get a list of available configuration options and their default values.
4
5 See f.e. the [configuration options for the Curl driver](http/Client/Curl#Configuration:).
6
7 ## Params:
8
9 None.
10
11 ## Returns:
12
13 * array, list of key/value pairs of available configuration options and their default values.
14
15 ## Throws:
16
17 * http\Exception\InvalidArgumentException
18
19 ## Example:
20
21 <?php
22
23 $client = new http\Client("curl");
24 var_dump($client->getAvailableConfiguration());
25
26 ?>
27
28 Yields:
29
30 array(10) {
31 ["maxconnects"]=>
32 int(-1)
33 ["max_host_connections"]=>
34 int(0)
35 ["max_pipeline_length"]=>
36 int(5)
37 ["max_total_connections"]=>
38 int(0)
39 ["pipelining"]=>
40 bool(false)
41 ["chunk_length_penalty_size"]=>
42 int(0)
43 ["content_length_penalty_size"]=>
44 int(0)
45 ["pipelining_server_bl"]=>
46 NULL
47 ["pipelining_site_bl"]=>
48 NULL
49 ["use_eventloop"]=>
50 bool(false)
51 }
52