HumHub Documentation (unofficial)

Curl extends AbstractRetriever
in package

Tries to retrieve JSON schemas from a URI using cURL library

Tags
author

Sander Coolen sander@jibber.nl

Table of Contents

Properties

$contentType  : string
Media content type
$messageBody  : mixed

Methods

__construct()  : mixed
getContentType()  : string
Get media content type
retrieve()  : mixed
Retrieve a schema from the specified URI
fetchContentType()  : bool
fetchMessageBody()  : mixed

Properties

$messageBody

protected mixed $messageBody

Methods

__construct()

public __construct() : mixed

retrieve()

Retrieve a schema from the specified URI

public retrieve(mixed $uri) : mixed
Parameters
$uri : mixed

URI that resolves to a JSON schema

Tags
see
UriRetrieverInterface::retrieve()
Return values
mixed

string|null

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

Loading…
On this page

Search results