You are here

public function AvatarKitDownloadUtilityInterface::get in Avatar Kit 8.2

Get stream for a file.

Parameters

string $uri: The URL of the file to download.

Return value

\Psr\Http\Message\ResponseInterface The response stream.

Throws

\InvalidArgumentException If the URI is defective.

\Exception Various other exceptions thrown from HTTP client.

1 method overrides AvatarKitDownloadUtilityInterface::get()
AvatarKitDownloadUtility::get in src/AvatarKitDownloadUtility.php
Get stream for a file.

File

src/AvatarKitDownloadUtilityInterface.php, line 27

Class

AvatarKitDownloadUtilityInterface
Interface for download utility.

Namespace

Drupal\avatars

Code

public function get(string $uri) : ResponseInterface;