[์ปดํ“จํ„ฐ ๋„คํŠธ์›Œํฌ] application layer2
ยท
Computer Science/์ปดํ“จํ„ฐ ๋„คํŠธ์›Œํฌ
HTTP Method Types ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” Method GET ์„œ๋ฒ„์—๊ฒŒ URL์— ๋ช…์‹œ๋œ ์ •๋ณด๋ฅผ ์š”์ฒญํ•  ๋•Œ ์‚ฌ์šฉํ•œ๋‹ค. URLํ•„๋“œ์— ์ธ์ž/๋ณ€์ˆ˜ ๊ฐ’ ์ถ”๊ฐ€ ๊ฐ€๋Šฅํ•˜๋‹ค. URL ๋งํฌ์ƒ์˜ ๋ฐ์ดํ„ฐ ๋…ธ์ถœ์— ๋Œ€ํ•œ ์šฐ๋ ค๊ฐ€ ์žˆ๋‹ค. POST ์š”์ฒญ๋œ ์ž์›์„ ์ถ”๊ฐ€ํ•˜๊ธฐ ์œ„ํ•œ ์šฉ๋„๋กœ ์‚ฌ์šฉํ•œ๋‹ค. HTTP ๋ฉ”์‹œ์ง€์˜ entity body์— ์ธ์ž ๊ฐ’๋“ค์ด ํฌํ•จ๋œ๋‹ค. -> URL์„ ํ†ตํ•ด ์ธ์ž๊ฐ€ ์ง์ ‘ ๋…ธ์ถœ๋˜์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ๋ณด์•ˆ ์ธก๋ฉด์—์„œ GET๋ฐฉ์‹๋ณด๋‹ค ๋น„๊ต์  ์•ˆ์ „ํ•˜๋‹ค. ํ•˜์ง€๋งŒ...๋ฐ์ดํ„ฐ๋ฅผ ์•”ํ˜ธํ™”ํ•˜์ง€ ์•Š์œผ๋ฉด ๊ฒฐ๊ตญ ๋˜‘๊ฐ™๋‹ค. ๋ถ€๊ฐ€์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” Method PUT ์š”์ฒญ๋œ ์ž์›์˜ ๊ฐฑ์‹ ์ด ํ•„์š”ํ•œ ๊ฒฝ์šฐ ์‚ฌ์šฉ๋œ๋‹ค. entity body์— ํฌํ•จ๋œ ์ž์›์„ ํ•ด๋‹น URL์— ์—…๋กœ๋“œํ•œ๋‹ค. DELETE URL์— ์ง€์ •๋œ ์ž์›์˜ ์‚ญ์ œ๋ฅผ ์š”์ฒญํ•  ๊ฒฝ์šฐ ์‚ฌ์šฉํ•œ๋‹ค. ๋ณด์•ˆ์ƒ์˜..