private function ServicesClientConnectionCurlRequest::getCurlOptions in Services Client 7.2
Same name and namespace in other branches
- 7 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 196 - 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;
}
}