1 | <?php |
||
9 | class BalancerUrlResponseHandler extends OrtcResponseHandler |
||
10 | { |
||
11 | /** |
||
12 | * handle response from guzzle. |
||
13 | * |
||
14 | * @param FutureResponse $response |
||
15 | * |
||
16 | * @return BalancerUrlResponse |
||
17 | */ |
||
18 | 5 | public function handle($response) |
|
30 | |||
31 | /** |
||
32 | * validating response. |
||
33 | * |
||
34 | * @param string $url |
||
35 | * |
||
36 | * @throws InvalidBalancerUrlException |
||
37 | */ |
||
38 | 4 | public function validate($url) |
|
54 | |||
55 | /** |
||
56 | * parse body to find url. |
||
57 | * |
||
58 | * @param string $body |
||
59 | * |
||
60 | * @throws InvalidBalancerUrlException |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | 5 | public function parseUrl($body) |
|
75 | } |
||
76 |