1 | <?php |
||
6 | class TextResponse extends BaseResponse |
||
7 | { |
||
8 | const READ_BUFFER_LENGTH = 8192; |
||
9 | |||
10 | /** |
||
11 | * Parse response |
||
12 | * |
||
13 | * @return string Response |
||
14 | * @throws ConnectionException |
||
15 | */ |
||
16 | public function parse() |
||
34 | |||
35 | /** |
||
36 | * Read text |
||
37 | * |
||
38 | * @param int $bytes Bytes to read |
||
39 | * @return string Text |
||
40 | * @throws ConnectionException |
||
41 | */ |
||
42 | private function read($bytes) |
||
50 | } |