__construct() __construct(mixed $data = '', mixed $code = 302, array $header = [], array $options = []) : mixed 架构函数 Parameters mixed $data 输出数据 mixed $code array $header array $options 输出参数 Returns mixed —
create() create(mixed $data = '', string $type = '', int $code = 200, array $header = [], array $options = []) : \think\Response 创建Response对象 Parameters mixed $data 输出数据 string $type 输出类型 int $code array $header array $options 输出参数 Returns \think\Response —
header() header(string|array $name, string $value = null) : $this 设置响应头 Parameters string|array $name 参数名 string $value 参数值 Returns $this —
lastModified() lastModified(string $time) : $this LastModified Parameters string $time Returns $this —
cacheControl() cacheControl(string $cache) : $this 页面缓存控制 Parameters string $cache 缓存设置 Returns $this —
contentType() contentType(string $contentType, string $charset = 'utf-8') : $this 页面输出类型 Parameters string $contentType 输出类型 string $charset 输出编码 Returns $this —
with() with(string|array $name, mixed $value = null) : $this 重定向传值(通过Session) Parameters string|array $name 变量名或者数组 mixed $value 值 Returns $this —
remember() remember(string $url = null) : $this 记住当前url后跳转 Parameters string $url 指定记住的url Returns $this —
restore() restore(string $url = null) : $this 跳转到上次记住的url Parameters string $url 闪存数据不存在时的跳转地址 Returns $this —