본문 바로가기

Etc.

HTTP

HTTP - RFC 2616

Requset

Request =
Request-Line
*(( general-header
| request-header
| entity-header ) CRLF)
CRLF
message-body

Request-Line

Request-Line = Method SP Request-URI SP HTTP-Version CRLF

general-header(Response와 공통으로 쓰임)

general-header =
Cache-Control
| Connection
| Date
| Pragma
| Trailer
| Transfer-Encoding
| Upgrade
| Via
| Warning

request-header

request-header =
Accept
| Accept-Charset
| Accept-Encoding
| Accept-Language
| Authorization
| Expect
| From
| Host
| If-Match
| If-Modified-Since
| If-None-Match
| If-Range
| If-Unmodified-Since
| Max-Forwards
| Proxy-Authorization
| Range
| Referer
| TE
| User-Agent

entity-header

entity-header =
Allow
| Content-Encoding
| Content-Language
| Content-Length
| Content-Location
| Content-MD5
| Content-Range
| Content-Type
| Expires
| Last-Modified
| extension-header


Response

Response =
Status-Line
*(( general-header
| response-header
| entity-header ) CRLF)
CRLF
[ message-body ]

Status-Line

Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF

general-header = reqeust와 동일

response-header

response-header =
Accept-Ranges
| Age
| ETag
| Location
| Proxy-Authenticate
| Retry-After
| Server
| Vary
| WWW-Authenticate

entity-header = request와 동일

'Etc.' 카테고리의 다른 글

Github API issue + JS로 댓글 기능 만들기  (0) 2021.06.01
API vs Library vs Framework  (0) 2021.01.12
HTTP Cache  (0) 2020.09.11
TDD 정리  (0) 2020.02.17
Git  (0) 2019.11.07