ClientInterface.php 886 B

12345678910111213141516171819202122
  1. <?php
  2. namespace Stripe\HttpClient;
  3. interface ClientInterface
  4. {
  5. /**
  6. * @param string $method The HTTP method being used
  7. * @param string $absUrl The URL being requested, including domain and protocol
  8. * @param array $headers Headers to be used in the request (full strings, not KV pairs)
  9. * @param array $params KV pairs for parameters. Can be nested for arrays and hashes
  10. * @param bool $hasFile Whether or not $params references a file (via an @ prefix or
  11. * CURLFile)
  12. *
  13. * @throws \Stripe\Exception\ApiConnectionException
  14. * @throws \Stripe\Exception\UnexpectedValueException
  15. *
  16. * @return array an array whose first element is raw request body, second
  17. * element is HTTP status code and third array of HTTP headers
  18. */
  19. public function request($method, $absUrl, $headers, $params, $hasFile);
  20. }