class RemoteDocumentFetcher

Constants

MAX_DOCUMENT_BYTES

Methods

__construct(Factory $http, HttpsDestinationPolicy $destinations)

Create the remote JSON document fetcher.

array
fetch(string $url)

Fetch a bounded JSON document from a public HTTPS endpoint.

Details

at line 21
__construct(Factory $http, HttpsDestinationPolicy $destinations)

Create the remote JSON document fetcher.

Parameters

Factory $http
HttpsDestinationPolicy $destinations

at line 30
array fetch(string $url)

Fetch a bounded JSON document from a public HTTPS endpoint.

Parameters

string $url

Return Value

array