<aside> 💡 여기 레퍼런스로 연결된 링크들은 RFC 표준 문서입니다. "HTTP 완벽가이드" 부록C 에서 헤더 레퍼런스를 한글로 볼 수 있습니다.

</aside>

헤더 정리 기가막힘

get-Pork-Belly/Webserv

1. Accept-Charset (RFC7231 - 5.3.3.)

Accept-Charset 헤더는 사용자 에이전트가 텍스트 응답으로 받을수 있는 charset을 표시하기위해 전송한다.

Accept-Charset=1#((charset/"*")[weight])

ex)
Accept-Charset: iso-8859-5, unicode-1-1;q=0.8

charset은 대소문자를 구분하지 않는고, IANA"CharacterSets”registry 에 등록되어있는 것을 사용한다.

2. Accept-Language

ref : https://tools.ietf.org/html/rfc7231#section-5.3.5

Accept-Language: en;q=0.5, fr, ko

3. Allow

ref : https://tools.ietf.org/html/rfc7231#section-7.4.1

Allow 헤더는 리소스가 지원하는 메소드 집합을 나열합니다.

어떤 요청 메소드를 사용할 수 있는지 알리기 위해 서버가 405 Method Not Allowed 상태코드로 응답할 경우에 이 헤더를 반드시 보내야 합니다. 비어있는 Allow 헤더는 리소스가 어떤 요청 메소드도 허용하지 않음을 나타냅니다.

4. Authorization

ref : https://tools.ietf.org/html/rfc7235#section-4.2

HTTP Authorization 요청 헤더는 서버의 사용자 에이전트임을 증명하는 자격을 포함하여, 보통 서버에서 [401](<https://developer.mozilla.org/ko/docs/Web/HTTP/Status/401>)Unauthorized 상태를 WWW-Authenticate (en-US) 헤더로 알려준 이후에 나옵니다.

5. Content-Language

ref : https://tools.ietf.org/html/rfc7231#section-3.1.3.2

Content-Language 태그는 대상 청중의 자연 언어가 무엇인지를 나타냅니다.

Content-Language = 1#language-tag 와 같이 언어 태그(language-tag)를 사용하며, 예시는 아래와 같습니다.

언어 태그: fr en-US es-419 az-Arab x-pig-latin man-Nkoo-GN ...

6. Content-Length

ref : https://tools.ietf.org/html/rfc7230#section-3.3.2