Proxy.php 813 B

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