mdref.json config
[mdref/mdref-http] / http / Client.md
1 # class http\Client implements SplSubject, Countable
2
3 The HTTP client. See http\Client\Curl's [options](http/Client/Curl#Options:) which is the only driver currently supported.
4
5 ## Constants:
6
7 * DEBUG_INFO
8 Debug callback's $data contains human readable text.
9 * DEBUG_IN
10 Debug callback's $data contains data received.
11 * DEBUG_OUT
12 Debug callback's $data contains data sent.
13 * DEBUG_HEADER
14 Debug callback's $data contains headers.
15 * DEBUG_BODY
16 Debug callback's $data contains a body part.
17 * DEBUG_SSL
18 Debug callback's $data contains SSL data.
19
20 ## Properties:
21
22 * private SplObjectStorage $observers = NULL
23 Attached observers.
24 * protected array $options = NULL
25 Set options.
26 * protected http\Message $history = NULL
27 Request/response history.
28 * public bool $recordHistory = false
29 Whether to record history in http\Client::$history.