Skip to content

Commit f85a280

Browse files
authored
Merge pull request arangodb#234 from sandrokeil/feature/233-delete-optional-body
Add optional body param to delete request
2 parents 730397f + 2267255 commit f85a280

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ArangoDBClient/Connection.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,13 @@ public function patch($url, $data, array $customHeaders = [])
289289
*
290290
* @param string $url - DELETE URL
291291
* @param array $customHeaders
292+
* @param string $data - delete body
292293
*
293294
* @return HttpResponse
294295
*/
295-
public function delete($url, array $customHeaders = [])
296+
public function delete($url, array $customHeaders = [], $data = '')
296297
{
297-
$response = $this->executeRequest(HttpHelper::METHOD_DELETE, $url, '', $customHeaders);
298+
$response = $this->executeRequest(HttpHelper::METHOD_DELETE, $url, $data, $customHeaders);
298299

299300
return $this->parseResponse($response);
300301
}

0 commit comments

Comments
 (0)