Documentation

FileGetContents extends AbstractRetriever
in package

Tries to retrieve JSON schemas from a URI using file_get_contents()

Tags
author

Sander Coolen sander@jibber.nl

Table of Contents

$contentType  : string
Media content type
$messageBody  : mixed
getContentType()  : string
Get media content type
retrieve()  : mixed
{@inheritdoc}
getContentTypeMatchInHeader()  : string|null
fetchContentType()  : bool

Properties

Methods

getContentTypeMatchInHeader()

protected static getContentTypeMatchInHeader(string $header) : string|null
Parameters
$header : string
Return values
string|null

fetchContentType()

private fetchContentType(array<string|int, mixed> $headers) : bool
Parameters
$headers : array<string|int, mixed>

HTTP Response Headers

Return values
bool

Whether the Content-Type header was found or not

Search results