node version is v10.4.1
that"s what it says in the document
http.createServer([options][, requestListener])
previously it was said that [] meant an optional parameter, so
- requestListener is a function whose arguments are given by options?
- all the options,requestListener here are optional parameters? So what determines the parameters of the requestListener function?
beginners don"t understand very well. Please explain in detail what it says in
vscode
export function createServer (requestListener?: (request: IncomingMessage, response: ServerResponse) = > void): Server;
how is this different from that in api documents? does it mean the same thing?