orion-muf / KHU-2017-2-Capstone2-RENEW

0 stars 0 forks source link

JS apply callback 등등.. 철학 및 개념 공부하기 #17

Open muf opened 6 years ago

muf commented 6 years ago

expressJS listen() track해보자

muf commented 6 years ago

.ts typescript.. typescript가 여기서 튀어 나오네.. httpServer

muf commented 6 years ago

middleware

muf commented 6 years ago

node http는 built-in 느낌인데?

muf commented 6 years ago
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.

image

muf commented 6 years ago

image

이것도 궁금함