Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content and Payload #878

Closed
mnot opened this issue Jun 18, 2021 · 3 comments · Fixed by #880
Closed

Content and Payload #878

mnot opened this issue Jun 18, 2021 · 3 comments · Fixed by #880

Comments

@mnot
Copy link
Member

mnot commented Jun 18, 2021

I'm a little uneasy that the majority of headers that are prefixed with Content- are actually scoped to the selected representation.

E.g., Content-Length, Content-Type, Content-Encoding, Content-Language. The only registered, current Content- headers that actually about the content (using the current definition in Semantics) are Content-Location and Content-Disposition, AFAICT. Not sure about Content-Range; it's defined in terms of the selected representation, but could equally be defined in terms of content, I suspect.

It might help to add a small note to the content section that explains that the Content- prefix doesn't necessarily imply that the header is strictly about the content. Also might be worth mentioning in the registration considerations.

@ioggstream
Copy link
Contributor

Reading semantics I have some doubts on C-L wrt partial representation

The "Content-Length" header field indicates the associated representation's data length

this seems to be the full representation data (eg. see C-L + HEAD). But then

When transferring a representation as content, Content-Length refers specifically to the amount of data enclosed so that it can be used to delimit framing

what happens with Content-Lenght value in a range response? The complete representation-data or the actual content?

@reschke
Copy link
Contributor

reschke commented Jun 18, 2021

"A Content-Length header field present in a 206 response indicates the number of octets in the content of this message, which is usually not the complete length of the selected representation. Each Content-Range header field includes information about the selected representation's complete length."

So the case of a 206 response is special-cased.

@ioggstream
Copy link
Contributor

It seems to me that C-L is more often used to convey "messaging" information, than the actual metadata (which happens only when HEAD is used).

mnot added a commit that referenced this issue Jul 2, 2021
@mnot mnot closed this as completed in #880 Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants