prerelease of beta1

This commit is contained in:
crazywhalecc
2022-12-20 20:10:40 +08:00
parent 04247048d4
commit c9bf0fb13c
16 changed files with 585 additions and 43 deletions

View File

@@ -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);
}