HTTP 헤더 내 일반 헤더 (General Header)항목으로 요청 및 응답 메시지 모두에서 사용 가능한 기본적인 헤더 항목이다.
주요 항목들
- Date
- Connection
- Cache-Control
- Pragma
- Trailer
HTTP 헤더 내 엔터티/개체 헤더 (Entity Header) 항목으로 요청 및 응답 메시지 모두에서 사용 가능한 Entity(콘텐츠, 본문, 리소스 등)에 대한 설명 헤더 항목이다.
- HTTP 메시지 내 포함된 선택적인 개체에 대한 구체적인 미디어 타입 등의 설명한다.
- HTTP 메시지는 이미지, 비디오, 오디오, HTML 문서, 전자메일 등의 개체들을 운반할 수 있다.
주요 항목들
- Content-Type(공통헤더)
- Content-Language(공통헤더)
- Content-Encoding(공통헤더)
- Content-Length(공통헤더)
- Content-Location(공통헤더)
- Content-Disposition(응답 헤더)
- Content-Security-Policy(응답헤더)(공통헤더)
- Location(응답헤더)
- Last-Modified(응답헤더)
- Transfer-Encoding(응답헤더)
HTTP 헤더 내 요청 헤더 (Request Header) 항목으로 http 요청 메시지 내에서만 나타나며 가장 방대하다.
주요 항목들
- Host
- User-Agent
- From
- Cookie(쿠키/캐시 관련)
- Referer
- If-Modified-Since
- Authorization
- Origin
- Http 메세지 body의 속성 또는 내용 협상용 항목들
- Accept
- Accept-Charset
- Accept-Encording
- Accept-Language
HTTP 헤더 내 응답 헤더 (Response Header) 항목으로 특정 유형의 HTTP 요청이나 특정 HTTP 헤더를 수신했을 때, 이에 응답한다.
주요 항목들
- Sever
- Accept-Range
- Set-cookie(쿠키/캐시 관련)
- Expires(쿠키/캐시 관련)
- Age(쿠키/캐시 관련)
- ETag(쿠키/캐시 관련)
- Proxy-authentication
- Allow
- Access-Control-Allow-Origin
Reference