\JsonSchema\Uri\RetrieversCurl

Tries to retrieve JSON schemas from a URI using cURL library

Summary

Methods
Properties
Constants
getContentType()
__construct()
retrieve()
No public properties found
No constants found
fetchContentType()
$contentType
$messageBody
N/A
fetchMessageBody()
No private properties found
N/A

Properties

$contentType

$contentType : string

Media content type

Type

string

$messageBody

$messageBody : 

Type

Methods

getContentType()

getContentType() : string

Get media content type

Returns

string

__construct()

__construct() 

retrieve()

retrieve(  $uri) 

{@inheritdoc}

Parameters

$uri

fetchContentType()

fetchContentType(string  $response) : boolean

Parameters

string $response

cURL HTTP response

Returns

boolean —

Whether the Content-Type header was found or not

fetchMessageBody()

fetchMessageBody(string  $response) 

Parameters

string $response

cURL HTTP response