2024.06.03 - [Node.js] - [Do it_Node.js] HTTP 모듈 이해하고 서버 만들기 [요청 객체]클라이언트에서 서버로 요청할 때 생성(request, req) const http = require("http");const server = http.createServer((req, res) => { console.log(req);});server.listen(3000, () => { console.log("3000번 포트에서 서버 실행 중");}); [응답 객체]서버에서 클라이언트로 응답할 때 생성 (response, res) 헤더(처리할 자료의 유형, 서버의 상태 표시)와 본문으로 구성되고 응답이 끝난 후에는 응답 종료 응답 헤더: setHeader, writeHea..