ThinkJs2.0开发手册APIhttp
上一篇:think.http.base
下一篇:controller
http
- 属性
- http.req
- http.res
- http.startTime
- http.url
- http.version
- http.method
- http.headers
- http.pathname
- http.query
- http.host
- http.hostname
- http.payload
- http._payloadParsed
- http._get
- http._post
- http._file
- http._cookie
- 方法
- http.config(name)
- http.referrer()
- http.userAgent()
- http.isGet()
- http.isPost()
- http.isAjax(method)
- http.isJsonp(name)
- http.get(name, value)
- http.post(name, value)
- http.param(name)
- http.file(name)
- http.header(name, value)
- http.expires(time)
- http.status(status)
- http.ip()
- http.lang(lang, asViewPath)
- http.theme(theme)
- http.cookie(name, value)
- http.session(name, value)
- http.redirect(url, status)
- http.type(contentType, encoding)
- http.write(content, encoding)
- http.end(content, encoding)
- http.success(data, message)
- http.fail(errno, errmsg, data)
- http.json(data)
上一篇:think.http.base
下一篇:controller