wire / wire-format / http1-request

HTTP/1.1 request message

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'.

wire-format kind wire-format status standard verification verified tier B wire-format@1

aka: HTTP/1.1 request message

wire format

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'.

fieldsizemeaning
request-targetvariableorigin-form / absolute-form / authority-form / asterisk-form (RFC 9112 §3.2).
HTTP-version8 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


provenance

agent: curl -H 'accept: application/json' wire.phall.io/wire-format/http1-request or /wire-format/http1-request.json