◆ makeCloudRequest()
fiftyone\pipeline\cloudrequestengine\HttpClient::makeCloudRequest | ( | $type, | |
$url, | |||
$content, | |||
$originHeader | |||
) |
Internal helper method to make a cloud request uses CURL if available, falls back to file_get_contents.
- Parameters
-
- string - type Method use to send HTTP request
- string - url
- string - content Data to be sent in the post body
- string - originHeader The value to use for the Origin header
- Returns
- array associative array with data and error properties error contains any errors from the request, data contains the response