mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 23:25:35 +08:00
prerelease of beta1
This commit is contained in:
@@ -4,27 +4,6 @@ declare(strict_types=1);
|
||||
|
||||
namespace ZM\Context;
|
||||
|
||||
use OneBot\Driver\Event\Http\HttpRequestEvent;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
use Psr\Http\Message\ServerRequestInterface;
|
||||
|
||||
interface ContextInterface
|
||||
{
|
||||
/**
|
||||
* 获取 Http Request 请求对象
|
||||
*/
|
||||
public function getRequest(): ServerRequestInterface;
|
||||
|
||||
/**
|
||||
* 获取 Http 请求事件对象
|
||||
*/
|
||||
public function getHttpRequestEvent(): HttpRequestEvent;
|
||||
|
||||
/**
|
||||
* 使用 Response 对象响应 Http 请求
|
||||
* Wrapper of HttpRequestEvent::withResponse method
|
||||
*
|
||||
* @param ResponseInterface $response 响应对象
|
||||
*/
|
||||
public function withResponse(ResponseInterface $response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user