URI
Uniform Resource Identifier

URI(Uniform Resource Identifier)
Uniform: ๋ฆฌ์์ค ์๋ณํ๋ ํต์ผ๋ ๋ฐฉ์
Resource: ์์, URI๋ก ์๋ณํ ์ ์๋ ๋ชจ๋ ๊ฒ(์ ํ ์์)
Identifier: ๋ค๋ฅธ ํญ๋ชฉ๊ณผ ๊ตฌ๋ถํ๋๋ฐ ํ์ํ ์ ๋ณด
URL: Uniform Resource Locator ๋ฆฌ์์ค๊ฐ ์๋ ์์น๋ฅผ ์ง์
URN: Uniform Resource Name ๋ฆฌ์์ค์ ์ด๋ฆ์ ๋ถ์ฌ
URN ์ด๋ฆ๋ง์ผ๋ก ์ค์ ๋ฆฌ์์ค๋ฅผ ์ฐพ์ ์ ์๋ ๋ฐฉ๋ฒ์ด ๋ณดํธํ ๋์ง ์์. ๊ณ ๋ก URI = URL ๊ฐ์ ์๋ฏธ๋ผ๊ณ ํ ์ ์๋ค.
URL ๋ถ์
scheme://[userinfo@]host[:port][/path][?query][#fragment] https://www.google.com:443/search?q=hello&hl=ko
ํ๋กํ ์ฝ(https)
ํธ์คํธ๋ช (www.google.com)
ํฌํธ ๋ฒํธ(443)
ํจ์ค(/search)
์ฟผ๋ฆฌ ํ๋ผ๋ฏธํฐ(q=hello&hl=ko)
scheme๋ ํ๋กํ ์ฝ ์ ๋ณด๊ฐ ๋ค์ด๊ฐ๋ค. ํ๋กํ ์ฝ : ์ด๋ค ๋ฐฉ์์ผ๋ก ์์์ ์ ๊ทผํ ๊ฒ์ธ๊ฐ ํ๋ ํต์ ๊ท์ฝ. ex) http, https, ftp ๋ฑ๋ฑ (https๋ http์ ๋ณด์ ์ถ๊ฐ (HTTP Secure))
userinfo URL์ ์ฌ์ฉ์์ ๋ณด๋ฅผ ํฌํจํด์ ์ธ์ฆ. (๊ฑฐ์ ์ฌ์ฉํ์ง ์์)
host ํธ์คํธ๋ช ex) www.google.com
๋๋ฉ์ธ๋ช ๋๋ IP ์ฃผ์๋ฅผ ์ง์ ์ฌ์ฉ๊ฐ๋ฅ
port ์ ์ ํฌํธ. ์ผ๋ฐ์ ์ผ๋ก ์๋ต, ์๋ต์ http๋ 80, https๋ 443
path ๋ฆฌ์์ค ๊ฒฝ๋ก(path), ๊ณ์ธต์ ๊ตฌ์กฐ ex) /home/file1.jpg
/members /members/100, /items/iphone12
query key=value ํํ ex) ?q=hello&hl=ko : hello๋ฅผ ๊ฒ์, ์ธ์ด๋ ko(ํ๊ตญ์ด) ?๋ก ์์, &๋ก ์ถ๊ฐ ๊ฐ๋ฅ ?keyA=valueA&keyB=valueB query parameter, query string ๋ฑ์ผ๋ก ๋ถ๋ฆผ, ์น์๋ฒ์ ์ ๊ณตํ๋ ํ๋ผ๋ฏธํฐ, ๋ฌธ์ ํํ
fragment ex) https://docs.spring.io/spring-boot/docs/current/reference/html/getting-
started.html#getting-started-introducing-spring-boot html ๋ด๋ถ ๋ถ๋งํฌ ๋ฑ์ ์ฌ์ฉ
์๋ฒ์ ์ ์กํ๋ ์ ๋ณด ์๋
Last updated
Was this helpful?