MCPcopy Index your code
hub / github.com/thinkjs/thinkjs / createServer

Method createServer

lib/application.js:144–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 host: think.config('host'),
143 sticky: think.config('stickyCluster'),
144 createServer() {
145 const createServerFn = think.config('createServer');
146 const callback = think.app.callback();
147 if (createServerFn) {
148 assert(helper.isFunction(createServerFn), 'config.createServer must be a function');
149 }
150 const server = createServerFn ? createServerFn(callback) : http.createServer(callback);
151 think.app.server = server;
152 return server;
153 },
154 logger: think.logger.error.bind(think.logger),
155 processKillTimeout: think.config('processKillTimeout'),
156 onUncaughtException: think.config('onUncaughtException'),

Callers

nothing calls this directly

Calls 1

configMethod · 0.80

Tested by

no test coverage detected