summaryrefslogtreecommitdiffstats
path: root/library/vendor/iplx/Http/ClientInterface.php
blob: e7765a71819ca530e362d80b8e1c895dc607e637 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace iplx\Http;

use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

/**
 * Interface for HTTP clients which send HTTP requests
 */
interface ClientInterface
{
    /**
     * Send a HTTP request
     *
     * @param   RequestInterface    $request    Request to send
     * @param   array               $options    Request options
     *
     * @return  ResponseInterface               The response
     */
    public function send(RequestInterface $request, array $options = []);
}