private function ServicesClientConnectionCurlRequest::getCurlOptions in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc \ServicesClientConnectionCurlRequest::getCurlOptions()
Returns cURL opts
Parameters
ServicesClientConnectionHttpRequest $request: Request data that should be processed
Return value
array cURL opts array
1 call to ServicesClientConnectionCurlRequest::getCurlOptions()
- ServicesClientConnectionCurlRequest::call in services_client_connection/
plugins/ ServicesClientConnectionCurlRequest.inc - Process request and call remote API
File
- services_client_connection/
plugins/ ServicesClientConnectionCurlRequest.inc, line 185 - Make requests via cURL
Class
- ServicesClientConnectionCurlRequest
- @file Make requests via cURL
Code
private function getCurlOptions($request) {
switch ($request->http_method) {
case 'POST':
return $this
->getCurlPostOptions($request);
case 'GET':
return $this
->getCurlGetOptions($request);
case 'PUT':
return $this
->getCurlPutOptions($request);
case 'DELETE':
return $this
->getCurlDeleteOptions($request);
default:
return NULL;
}
}