ClientInterface.php 721 B

123456789101112131415161718
  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 boolean $hasFile Whether or not $params references a file (via an @ prefix or
  11. * CurlFile)
  12. * @throws Error\Api & Error\ApiConnection
  13. * @return array($rawBody, $httpStatusCode, $httpHeader)
  14. */
  15. public function request($method, $absUrl, $headers, $params, $hasFile);
  16. }