wire / wire-format / http1-request
An HTTP/1.1 request is a start-line, header fields, an empty line, then an optional message body. The start-line is 'METHOD SP request-target SP HTTP-version CRLF'.
aka: HTTP/1.1 request message
spec: RFC 9112
An HTTP/1.1 request is a start-line, header fields, an empty line, then an optional message body. The start-line is 'METHOD SP request-target SP HTTP-version CRLF'.
| field | size | meaning |
|---|---|---|
| request-target | variable | origin-form / absolute-form / authority-form / asterisk-form (RFC 9112 §3.2). |
| HTTP-version | 8 bytes | 'HTTP/1.1' (or 'HTTP/1.0', 'HTTP/2'). |
example:
47 45 54 20 2f 20 48 54 54 50 2f 31 2e 31 0d 0a
GET / HTTP/1.1\r\n
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/http1-request
or /wire-format/http1-request.json