Skip to content

Commit

Permalink
some update (#265)
Browse files Browse the repository at this point in the history
- 根据文档,添加`getSwooleResponse` 和 `setSwooleResponse`(方便支持swoole原生api)
- 添加 redis 'hMget' 代码提示
  • Loading branch information
wp-breeder authored and inhere committed Dec 18, 2018
1 parent 45ecfce commit 5cc36c6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Server/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,22 @@ public function isMatchAccept(string $accept, string $keyword): bool
{
return StringHelper::contains($accept, $keyword) === true;
}

/**
* @return \Swoole\Http\Response
*/
public function getSwooleResponse(): \Swoole\Http\Response
{
return $this->swooleResponse;
}

/**
* @param \Swoole\Http\Response $swooleResponse
* @return $this
*/
public function setSwooleResponse(\Swoole\Http\Response $swooleResponse)
{
$this->swooleResponse = $swooleResponse;
return $this;
}
}

0 comments on commit 5cc36c6

Please sign in to comment.