Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | /** |
3 | * Pop PHP Framework (http://www.popphp.org/) |
4 | * |
5 | * @link https://github.com/popphp/popphp-framework |
6 | * @author Nick Sagona, III <dev@nolainteractive.com> |
7 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
8 | * @license http://www.popphp.org/license New BSD License |
9 | */ |
10 | |
11 | /** |
12 | * @namespace |
13 | */ |
14 | namespace Pop\Http\Client\Handler; |
15 | |
16 | use Pop\Http\Auth; |
17 | use Pop\Http\Client\Request; |
18 | use Pop\Http\Client\Response; |
19 | |
20 | /** |
21 | * HTTP client handler interface |
22 | * |
23 | * @category Pop |
24 | * @package Pop\Http |
25 | * @author Nick Sagona, III <dev@nolainteractive.com> |
26 | * @copyright Copyright (c) 2009-2024 NOLA Interactive, LLC. (http://www.nolainteractive.com) |
27 | * @license http://www.popphp.org/license New BSD License |
28 | * @version 5.2.0 |
29 | */ |
30 | interface HandlerInterface |
31 | { |
32 | |
33 | /** |
34 | * Determine whether or not resource is available |
35 | * |
36 | * @return bool |
37 | */ |
38 | public function hasResource(): bool; |
39 | |
40 | /** |
41 | * Get the resource |
42 | * |
43 | * @return mixed |
44 | */ |
45 | public function getResource(): mixed; |
46 | |
47 | /** |
48 | * Get the resource (alias method) |
49 | * |
50 | * @return mixed |
51 | */ |
52 | public function resource(): mixed; |
53 | |
54 | /** |
55 | * Method to send the request |
56 | */ |
57 | public function send(); |
58 | |
59 | /** |
60 | * Method to reset the handler |
61 | * |
62 | * @return HandlerInterface |
63 | */ |
64 | public function reset(): HandlerInterface; |
65 | |
66 | /** |
67 | * Close the handler connection |
68 | * |
69 | * @return void |
70 | */ |
71 | public function disconnect(): void; |
72 | |
73 | } |