blob: 3f457c956f411af0061549cd47abeafb07553f79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<?php
namespace Cardinity\Http;
use Cardinity\Method\MethodInterface;
interface ClientInterface
{
/**
* Send HTTP request
* @param MethodInterface $method
* @param string $requestMethod POST|GET|PATCH
* @param string $url http URL
* @param array $options query options. Query params goes under 'query' key.
* @return array
*/
public function sendRequest(MethodInterface $method, $requestMethod, $url, array $options = []);
}
|