diff --git a/fetch.bs b/fetch.bs index c77dba159..f00f7853c 100644 --- a/fetch.bs +++ b/fetch.bs @@ -2807,10 +2807,44 @@ consideration for the security consequences. New exceptions can be proposed by filing an issue. +
Content-Length
` headerThe `Content-Length
` header is largely defined in HTTP. Its processing model is
+defined here as the model defined in HTTP is not compatible with web content. [[HTTP]]
+
+
To extract a length +from a header list headers, run these steps: + +
Let values be the result of
+ getting, decoding, and splitting `Content-Length
` from
+ headers.
+
+
If values is null, then return null. + +
Let candidateValue be null. + +
For each value of values: + +
If candidateValue is null, then set candidateValue to + value. + +
Otherwise, if value is not candidateValue, then return failure. +
If candidateValue is the empty string or has a code point that is + not an ASCII digit, then return null. + +
Return candidateValue, interpreted as decimal number. +
Content-Type
` headerThe `Content-Type
` header is largely defined in HTTP. Its processing model is
-defined here as the ABNF defined in HTTP is not compatible with web content. [[HTTP]]
+defined here as the model defined in HTTP is not compatible with web content. [[HTTP]]
To extract a MIME type