You are here

private function ServicesClientConnectionCurlRequest::getCurlDeleteOptions in Services Client 7

Same name and namespace in other branches
  1. 7.2 services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc \ServicesClientConnectionCurlRequest::getCurlDeleteOptions()

Return the standard set of curl options for a DELETE

Parameters

ServicesClientConnectionHttpRequest $request: Request data that should be processed

Return value

array cURL opts array

1 call to ServicesClientConnectionCurlRequest::getCurlDeleteOptions()
ServicesClientConnectionCurlRequest::getCurlOptions in services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc
Returns cURL opts

File

services_client_connection/plugins/ServicesClientConnectionCurlRequest.inc, line 167
Make requests via cURL

Class

ServicesClientConnectionCurlRequest
@file Make requests via cURL

Code

private function getCurlDeleteOptions(&$request) {
  $ret = $this
    ->getDefaultCurlOptions($request);
  $ret += array(
    CURLOPT_CUSTOMREQUEST => 'DELETE',
  );
  return $ret;
}