ClientInterface.php 701 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Analytics\Model\Connector\Http;
  7. /**
  8. * An interface for an HTTP client.
  9. *
  10. * Sends requests via a proper adapter.
  11. */
  12. interface ClientInterface
  13. {
  14. /**
  15. * Sends a request using given parameters.
  16. *
  17. * Returns an HTTP response object or FALSE in case of failure.
  18. *
  19. * @param string $method
  20. * @param string $url
  21. * @param array $body
  22. * @param array $headers
  23. * @param string $version
  24. *
  25. * @return \Zend_Http_Response
  26. */
  27. public function request($method, $url, array $body = [], array $headers = [], $version = '1.1');
  28. }