Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Curl.php

function Curl::fetchMessageBody

Parameters

string $response cURL HTTP response:

1 call to Curl::fetchMessageBody()
Curl::retrieve in vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php

File

vendor/justinrainbow/json-schema/src/JsonSchema/Uri/Retrievers/Curl.php, line 62

Class

Curl
Tries to retrieve JSON schemas from a URI using cURL library

Namespace

JsonSchema\Uri\Retrievers

Code

private function fetchMessageBody($response) {
    preg_match("/(?:\r\n){2}(.*)\$/ms", $response, $match);
    $this->messageBody = $match[1];
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal