Auth
4 years ago
Cookie
2 years ago
Exception
4 years ago
Proxy
4 years ago
Response
4 years ago
Transport
2 years ago
Utility
2 years ago
Auth.php
4 years ago
Cookie.php
4 years ago
Exception.php
4 years ago
Hooker.php
4 years ago
Hooks.php
2 years ago
IDNAEncoder.php
4 years ago
IPv6.php
4 years ago
IRI.php
2 years ago
Proxy.php
4 years ago
Response.php
4 years ago
SSL.php
4 years ago
Session.php
2 years ago
Transport.php
4 years ago
Proxy.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Proxy connection interface |
| 4 | * |
| 5 | * @package Requests |
| 6 | * @subpackage Proxy |
| 7 | * @since 1.6 |
| 8 | */ |
| 9 | |
| 10 | /** |
| 11 | * Proxy connection interface |
| 12 | * |
| 13 | * Implement this interface to handle proxy settings and authentication |
| 14 | * |
| 15 | * Parameters should be passed via the constructor where possible, as this |
| 16 | * makes it much easier for users to use your provider. |
| 17 | * |
| 18 | * @see Requests_Hooks |
| 19 | * @package Requests |
| 20 | * @subpackage Proxy |
| 21 | * @since 1.6 |
| 22 | */ |
| 23 | interface Requests_Proxy { |
| 24 | /** |
| 25 | * Register hooks as needed |
| 26 | * |
| 27 | * This method is called in {@see Requests::request} when the user has set |
| 28 | * an instance as the 'auth' option. Use this callback to register all the |
| 29 | * hooks you'll need. |
| 30 | * |
| 31 | * @see Requests_Hooks::register |
| 32 | * @param Requests_Hooks $hooks Hook system |
| 33 | */ |
| 34 | public function register(Requests_Hooks $hooks); |
| 35 | } |
| 36 |