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