1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
namespace AmpProject;
use AmpProject\Exception\FailedRemoteRequest;
/** * Interface for abstracting away the transport that is being used for making remote requests. * * This allows external code to replace the transport and tests to mock it. * * @package ampproject/common */ interface RemoteGetRequest {
/** * Do a GET request to retrieve the contents of a remote URL. * * @param string $url URL to get. * @return Response Response for the executed request. * @throws FailedRemoteRequest If retrieving the contents from the URL failed. */ public function get($url); }
|