API Blueprint๋ ์ฌ๋ฌ HTTP ํค๋๋ฅผ ํ์ฉํ์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
ye olde RFC 2616 ์ ๋ฐ๋ฅด๋ฉด ์ฌ๋ฌ HTTP ํค๋๋ฅผ ๊ฐ์ง ์ ์์ต๋๋ค. RFC 7230 ์ ๋ค์์ ๋ ๋ช ํํ๊ฒ ๋ง๋ญ๋๋ค.
A sender MUST NOT generate multiple header fields with the same field
name in a message unless either the entire field value for that
header field is defined as a comma-separated list [i.e., #(values)]
or the header field is a well-known exception (as noted below).
Prefer
๋ฐ Link
ํค๋์ ๊ฐ์ ํญ๋ชฉ์ ๊ฐ๋
์ฑ์ ์ํด ๊ฐ๋ณ ํ์ ํ์๋๋ ๊ฒฝ์ฐ๊ฐ ๋ง์ต๋๋ค.
API Blueprint๋ ํ์ฌ ํ ์ค์ ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก์ผ๋ก ํ์ํด์ผ ํ์ง๋ง(์ถฉ๋ถํ ๊ด์ฐฎ์) ๋ณ๋์ ์ค์ ์์ฑํ ์ ์๋๋ก ํ์ฌ ๊ฐ๋ ์ฑ์ ๋์ด๋ ๊ฒ์ด ์ด์์ ์ ๋๋ค.
๊ฐ์ฌ ํด์!
:๋ชจ์:
์์ ์ฑ์ ์ํด Set-Cookie
๋ฐ Link
ํค๋๋ ํ์์์ "ํ์ฉ"๋ฉ๋๋ค. ์ง๋ฌธ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
๋์ @BigBlueHat ์ด ๊ฒฝ๊ณ ๋ฅผ ์์ ํ ์ ๊ฑฐ
ํ์ฌ ๊ตฌํ์ ๋ํ ์ฐธ๊ณ ์ฌํญ https://github.com/apiaryio/snowcrash/issues/75#issuecomment -58886108
๊ฒฝ๊ณ ๋ฅผ ์ ๊ฑฐํ๋ฉด ์ ์ฌ์ ์ผ๋ก ์ผํ๋ก ๊ตฌ๋ถ๋ ๋ชฉ๋ก ๊ฐ์ ๊ฐ๋ ๊ฒ์ผ๋ก ์ ์๋ ์ ์๋ ๊ณ ์ ํ ์ฌ์ฉ์ ์ ์ ํค๋๋ฅผ ๋ง๋ค ์ ์๋ค๋ ์ด์ ์ด ์์ต๋๋ค. ๋ฏธ๋๋ฅผ ์๊ธฐ ์ด๋ ต๊ธฐ ๋๋ฌธ์ "๋จ์ ๊ฒ์ ๋ฐ์๋ค์ด๋ ๋ฐ ์์ด ๊ด๋ํ๋ค". :์๋ค: