post-thumbnail

http 모듈

server 객체 01. 생성 http 모듈의 createServer() 메서드로 server 객체 생성 02. 메서드 listen(port, callback) : port로 서버 실행 close(callback) : 서버종료 on : server에 이벤트 연결 03. 이벤트 response 객체 01.메서드 const http = require('http'); const fs = require('fs'); const querystring = require('querystring'); // 쿼리스트링 관련 공식문서 // https://nodejs.org/dist/latest-v16.x/docs/api/querystring.html const server = http.createServer(function(req, res){ console.log('server가 구동중입니다.'); // get과 post

2021년 12월 23일
·
0개의 댓글
·
post-thumbnail

[생활코딩] 01~15강

Template literals String literals Template literals URL의 이해 http://opentutorials.org:3000/main?/id=HTML&page=12 protocol: 통신규칙, 사용자가 서버에 접속할 때 &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nb

2021년 12월 23일
·
0개의 댓글
·