44112898618a8ffa0181366ae650ec8107325e32
[mdref/mdref-http] / http / Client / enableEvents.md
1 # http\Client http\Client::enableEvents([bool $enable = true])
2
3 Enable usage of an event library like libevent, which might improve performance with big socket sets.
4
5 > ***NOTE:***
6 > This method has been deprecated in 2.3.0, please use http\Client::configure() instead.
7
8 ## Params:
9
10 * Optional bool $enable = true
11 Whether to enable libevent usage.
12
13 ## Returns:
14
15 * http\Client, self.
16
17 ## Throws:
18
19 * http\Exception\InvalidArgumentException
20 * http\Exception\UnexpectedValueException
21
22 ## Changelog:
23
24 Version | Change
25 --------|-------
26 2.3.0 | This method has been deprecated.