Skip to content

Commit fd6e608

Browse files
authored
Merge pull request #53 from Kolyunya/add-generic-send-action
Add a generic send action
2 parents 4c8c6bd + 45ca68e commit fd6e608

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Codeception/Module/REST.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,21 @@ public function sendDelete($url, $params = [], $files = [])
537537
$this->execute('DELETE', $url, $params, $files);
538538
}
539539

540+
/**
541+
* Sends a HTTP request.
542+
*
543+
* @param $method
544+
* @param $url
545+
* @param array|\JsonSerializable $params
546+
* @param array $files
547+
* @part json
548+
* @part xml
549+
*/
550+
public function send($method, $url, $params = [], $files = [])
551+
{
552+
$this->execute($method, $url, $params, $files);
553+
}
554+
540555
/**
541556
* Sets Headers "Link" as one header "Link" based on linkEntries
542557
*

0 commit comments

Comments
 (0)