summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 15:26:58 +0300
committerWolfy-J <[email protected]>2018-01-28 15:26:58 +0300
commit664743a1d6b62277653c4e33324a9040b8dbfb4d (patch)
tree99de74c918aa01a97e705020e4f63e6641f06118
parentcb7629dbe105e6ee2bf9b2b1f3619dff596d0aa1 (diff)
head parsing for raw data
-rw-r--r--source/Worker.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Worker.php b/source/Worker.php
index f21b27c0..f9700f0c 100644
--- a/source/Worker.php
+++ b/source/Worker.php
@@ -73,10 +73,10 @@ class Worker
* Example:
* $worker->respond((string)$response->getBody(), json_encode($response->getHeaders()));
*
- * @param string $payload
- * @param string $header
+ * @param string|null $payload
+ * @param string|null $header
*/
- public function send(string $payload, string $header = null)
+ public function send(string $payload = null, string $header = null)
{
if (is_null($header)) {
$this->relay->send($header, Relay::PAYLOAD_CONTROL | Relay::PAYLOAD_NONE);