bind() bind(string|array $name, string $class = null) : object 绑定类的静态代理 Parameters string|array $name 类标识 string $class 类名 Returns object
make() make(string $class, array|true $args = array(), boolean $newInstance = false) : mixed 调用类的实例 Parameters string $class 类名或者标识 array|true $args 变量 boolean $newInstance 是否每次创建新的实例 Returns mixed
create() create(mixed $data = '', string $type = '', integer $code = 200, array $header = [], array $options = []) : \think\response static 创建Response对象 Parameters mixed $data string $type integer $code array $header array $options Returns \think\response
options() options(mixed $options = []) : \think\Response static 输出的参数 Parameters mixed $options Returns \think\Response
data() data(mixed $data) : \think\Response static 输出数据设置 Parameters mixed $data Returns \think\Response
header() header(mixed $name, string $value = null) : \think\Response static 设置响应头 Parameters mixed $name string $value Returns \think\Response
content() content(mixed $content) : \think\Response static 设置页面输出内容 Parameters mixed $content Returns \think\Response
code() code(integer $code) : \think\Response static 发送HTTP状态 Parameters integer $code Returns \think\Response
lastModified() lastModified(string $time) : \think\Response static LastModified Parameters string $time Returns \think\Response
expires() expires(string $time) : \think\Response static expires Parameters string $time Returns \think\Response
eTag() eTag(string $eTag) : \think\Response static eTag Parameters string $eTag Returns \think\Response
cacheControl() cacheControl(string $cache) : \think\Response static 页面缓存控制 Parameters string $cache Returns \think\Response
contentType() contentType(string $contentType, string $charset = 'utf-8') : \think\Response static 页面输出类型 Parameters string $contentType string $charset Returns \think\Response
createFacade() createFacade(string $class = '', array $args = array(), boolean $newInstance = false) : object 创建Facade实例 Parameters string $class 类名或标识 array $args 变量 boolean $newInstance 是否每次创建新的实例 Returns object