MCPcopy Create free account

hub / github.com/thinkjs/thinkjs / functions

Functions198 in github.com/thinkjs/thinkjs

↓ 34 callersMethodconfig
* get config
index.d.ts:40
↓ 22 callersMethodparam
* get param * * @memberOf Context
index.d.ts:142
↓ 18 callersMethodpost
* get post data * @memberOf Context
index.d.ts:170
↓ 15 callersFunctiongetApplication
()
test/case/application.js:7
↓ 10 callersMethodfail
* send fail data * @memberOf Context
index.d.ts:130
↓ 9 callersMethodrun
* run
lib/application.js:229
↓ 9 callersMethodservice
(name: string)
index.d.ts:496
↓ 8 callersMethodfile
* get file data * * @memberOf Context
index.d.ts:198
↓ 7 callersMethod__after
()
test/case/extend/controller.js:328
↓ 7 callersMethodcookie
* get cookie
index.d.ts:24
↓ 7 callersMethodheader
* get this.ctx.header[name] * @memberOf Controller
index.d.ts:363
↓ 7 callersMethodisMethod
* @memberOf Context
index.d.ts:95
↓ 6 callersMethoderror
(msg: string)
index.d.ts:464
↓ 6 callersMethodset
(name, value, options)
test/lib/mockie.js:119
↓ 5 callersMethod_watcherCallBack
* watcher callback
lib/application.js:50
↓ 5 callersMethodinfo
(msg: string)
index.d.ts:462
↓ 5 callersMethodjsonp
* send jsonp data, callbackField default to this.config('jsonpCallbackField') * * @memberOf Context
index.d.ts:114
↓ 5 callersMethodreferer
* get referer header * @memberOf Context
index.d.ts:86
↓ 5 callersMethodvalidate
(rules: Object, msgs?: Object)
index.d.ts:468
↓ 4 callersMethodaction
* execute action * * @memberOf Controller
index.d.ts:436
↓ 4 callersMethoddownload
* download * @memberOf Context
index.d.ts:233
↓ 4 callersMethodisAjax
* is ajax request * @memberOf Context
index.d.ts:100
↓ 4 callersMethodisJsonp
* is jsonp request * callbackField default to this.config('jsonpCallbackField') * * @memberOf Context
index.d.ts:107
↓ 4 callersMethodloadAll
* load all data
lib/loader.js:100
↓ 3 callersMethodcontroller
* get controller instance * @memberOf Controller
index.d.ts:408
↓ 3 callersMethodexpires
* set expires header * @memberOf Context
index.d.ts:135
↓ 3 callersMethodget
* get or set param * * @memberOf Controller
index.d.ts:318
↓ 3 callersMethodjson
* send json data * @memberOf Context
index.d.ts:119
↓ 3 callersMethodnotifier
* notify error
lib/application.js:36
↓ 3 callersMethodparseArgv
* parse argv
lib/application.js:91
↓ 3 callersMethodsuccess
* send success data * @memberOf Context
index.d.ts:124
↓ 2 callersMethodbeforeStartServer
(fn: Function)
index.d.ts:499
↓ 2 callersFunctiongetLoader
()
test/case/loader.js:7
↓ 2 callersMethodinitPath
* init path
lib/loader.js:24
↓ 2 callersMethodloadMiddleware
* load middleware
lib/loader.js:54
↓ 2 callersMethodredirect
* Perform a 302 redirect to `url`. * * The string "back" is special-cased * to provide Referrer support, when Referrer * is not presen
index.d.ts:402
↓ 2 callersMethodreferrer
* get referer header * @memberOf Context
index.d.ts:91
↓ 2 callersMethodstartServer
()
test/lib/mockie.js:80
↓ 1 callersMethod__before
()
test/case/extend/controller.js:346
↓ 1 callersMethod_getMasterInstance
(argv)
lib/application.js:105
↓ 1 callersMethod_getWorkerInstance
(argv)
lib/application.js:138
↓ 1 callersMethod_isRunInTest
* check test env
lib/application.js:189
↓ 1 callersMethodaddRule
()
test/lib/mockie.js:146
↓ 1 callersMethodcaptureEvents
()
test/lib/mockie.js:87
↓ 1 callersFunctioncreateFile
(dir, filename, content, cb)
test/lib/utils.js:7
↓ 1 callersMethodforceReloadWorkers
()
test/lib/mockie.js:78
↓ 1 callersMethodget
(name, options)
test/lib/mockie.js:122
↓ 1 callersFunctiongetApplication
()
test/case/extend/controller.js:8
↓ 1 callersMethodloadCrontab
* load crontab
lib/loader.js:83
↓ 1 callersMethodloadData
* load app data
lib/loader.js:41
↓ 1 callersMethodloadExtend
* load extend
lib/loader.js:63
↓ 1 callersMethodquery
* get or set param * * @memberOf Controller
index.d.ts:324
↓ 1 callersMethodrunInCli
* command line invoke
lib/application.js:178
↓ 1 callersMethodrunInMaster
* run in master
lib/application.js:128
↓ 1 callersMethodrunInWorker
* run in worker * @param {Object} argv
lib/application.js:165
↓ 1 callersMethodrunTask
()
test/case/loader.js:16
↓ 1 callersMethodstartWatcher
* start watcher
lib/application.js:79
↓ 1 callersMethodvalidate
(rules, msgs)
test/lib/mockie.js:143
↓ 1 callersMethodwatch
()
test/case/application.js:97
↓ 1 callersMethodwriteConfig
* write config to file * @param {Config} config
lib/loader.js:92
Function__after
* after magic method
lib/extend/logic.js:48
Method__call
()
test/case/extend/controller.js:325
Functionaction
* execute action * @param {String} controller * @param {String} actionName * @param {String} m
lib/extend/controller.js:270
Functionattachment
()
test/case/extend/context.js:39
Functionbabel
(options)
test/case/application.js:110
Functionbody
* body getter
lib/extend/controller.js:11
Functionconfig
* get or set config * @param {String} name * @param {Mix} value * @param {String} m
lib/extend/controller.js:92
Functionconfig
* get or set configs * @param {String} name * @param {Mixed} value * @param {String} m
lib/extend/context.js:158
Functionconfig
(name)
test/case/extend/context.js:69
Functionconstruct
(data)
test/case/application.js:150
Methodconstructor
(options = {})
lib/loader.js:18
Methodconstructor
* constructor
lib/application.js:19
Methodconstructor
(ctx)
lib/think.js:48
Methodconstructor
(options,cb)
test/case/application.js:93
Methodconstructor
(options = {})
test/lib/mockie.js:72
Methodconstructor
(options = {})
test/lib/mockie.js:83
Methodconstructor
(req, res, options)
test/lib/mockie.js:109
Methodconstructor
(ctx)
test/lib/mockie.js:140
Functioncontroller
* get controller instance * @param {String} name * @param {String} m
lib/extend/controller.js:234
Functioncontroller
()
test/case/extend/context.js:72
Functioncookie
* get or set cookies * @param {String} name * @param {String} value * @param {Object} options
lib/extend/controller.js:185
Functioncookie
* get or set cookie * @param {String} name * @param {String} value * @param {Object} options
lib/extend/context.js:259
Functioncookie
(name, value)
test/case/extend/controller.js:91
MethodcreateServer
()
lib/application.js:144
MethodcreateServer
()
test/lib/mockie.js:96
Methoddebug
(msg: string)
index.d.ts:461
Functiondownload
* download * @param {String} filepath * @param {String} filename
lib/extend/controller.js:298
Functiondownload
* download * @param {String} filepath * @param {String} filename
lib/extend/context.js:303
Functiondownload
()
test/case/extend/controller.js:32
Methoddownload
* download * @memberOf Controller
index.d.ts:449
Functionemit
()
test/case/extend/context.js:37
Functionexpires
* set expires header * @param {Number} time
lib/extend/controller.js:144
Functionexpires
* set expires header
lib/extend/context.js:146
Functionexpires
(time)
test/case/extend/controller.js:81
Methodexpires
* set expires header * @memberOf Controller
index.d.ts:311
Functionfail
* send fail data
lib/extend/controller.js:137
Functionfail
* send fail data
lib/extend/context.js:116
Functionfail
({errno, errmsg, data})
test/case/extend/controller.js:78
Methodfail
* send fail data * @memberOf Controller
index.d.ts:306
Functionfile
* get or set file data * @param {String} name * @param {Mixed} value
lib/extend/controller.js:176
next →1–100 of 198, ranked by callers