lookup> Content-Length

Content-Length

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

表示头RFC7230#3.3.2
NameContent-Length
Type表示头
SpecificationRFC7230#3.3.2

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

Content-Length: 348

RFC7230#3.3.2

What does the Content-Length header do?

can provide the anticipated size, as a decimal number of octets, for a potential payload body.

Is Content-Length a request or response header?

It is classified as a representation header and can appear in requests or responses depending on context.

Related status codes

Related headers