Curl
extends AbstractRetriever
in package
Tries to retrieve JSON schemas from a URI using cURL library
Tags
Table of Contents
- $contentType : string
- Media content type
- $messageBody : mixed
- __construct() : mixed
- getContentType() : string
- Get media content type
- retrieve() : mixed
- {@inheritdoc}
- fetchContentType() : bool
- fetchMessageBody() : mixed
Properties
$contentType
Media content type
protected
string
$contentType
$messageBody
protected
mixed
$messageBody
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getContentType()
Get media content type
public
getContentType() : string
Tags
Return values
string —retrieve()
{@inheritdoc}
public
retrieve(mixed $uri) : mixed
Parameters
- $uri : mixed
Tags
Return values
mixed —fetchContentType()
protected
fetchContentType(string $response) : bool
Parameters
- $response : string
-
cURL HTTP response
Return values
bool —Whether the Content-Type header was found or not
fetchMessageBody()
private
fetchMessageBody(string $response) : mixed
Parameters
- $response : string
-
cURL HTTP response