Open muf opened 6 years ago
.ts typescript.. typescript가 여기서 튀어 나오네.. httpServer
middleware
node http는 built-in 느낌인데?
http.createServer([requestListener])#
Added in: v0.1.13
requestListener <Function>
Returns: <http.Server>
Class: http.Server#
Added in: v0.1.17
This class inherits from net.Server and has the following additional events:
server.address()#
Added in: v0.1.90
Returns the bound address, the address family name, and port of the server as reported by the operating system if listening on an IP socket. Useful to find which port was assigned when getting an OS-assigned address. Returns an object with port, family, and address properties: { port: 12346, family: 'IPv4', address: '127.0.0.1' }
For a server listening on a pipe or UNIX domain socket, the name is returned as a string.
이것도 궁금함
expressJS listen() track해보자