💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
create($data = '', string $type = 'html', int $code = 200): Response -- 创建Response对象 setSession(Session $session): Response -- 设置Session对象 send(): void -- 发送数据到客户端 output($data):mixed -- 处理数据 sendData(string $data): void -- 输出数据 options(array $options = []):Response -- 输出的参数 data($data):Response -- 输出数据设置 allowCache(bool $cache):Response -- 是否允许请求缓存 isAllowCache():bool -- 是否允许请求缓存 cookie(string $name, string $value, $option = null):Response -- 设置Cookie header(array $header = []):Response -- 设置响应头 content($content):Response -- 设置页面输出内容 code(int $code):Response -- 发送HTTP状态 lastModified(string $time):Response -- Last-Modified头信息 expires(string $time):Response -- Expires头信息 eTag(string $eTag):Response -- eTag头信息 cacheControl(string $cache):Response -- 页面缓存控制(Cache-control头信息) contentType(string $contentType, string $charset = 'utf-8'):Response -- 页面输出类型(Content-Type头信息) getHeader(string $name = ''):mixed -- 获取头部信息 getData():mixed -- 获取原始数据 getContent(): string -- 获取输出数据 getCode(): int -- 获取状态码