Skip to content

Commit 5cc36c6

Browse files
wp-breederinhere
authored andcommitted
some update (#265)
- 根据文档,添加`getSwooleResponse` 和 `setSwooleResponse`(方便支持swoole原生api) - 添加 redis 'hMget' 代码提示
1 parent 45ecfce commit 5cc36c6

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/Server/Response.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,4 +222,22 @@ public function isMatchAccept(string $accept, string $keyword): bool
222222
{
223223
return StringHelper::contains($accept, $keyword) === true;
224224
}
225+
226+
/**
227+
* @return \Swoole\Http\Response
228+
*/
229+
public function getSwooleResponse(): \Swoole\Http\Response
230+
{
231+
return $this->swooleResponse;
232+
}
233+
234+
/**
235+
* @param \Swoole\Http\Response $swooleResponse
236+
* @return $this
237+
*/
238+
public function setSwooleResponse(\Swoole\Http\Response $swooleResponse)
239+
{
240+
$this->swooleResponse = $swooleResponse;
241+
return $this;
242+
}
225243
}

0 commit comments

Comments
 (0)