I\'m creating an API in which it is possible to upload a file in a chunked manner.
Going by this Stackoverflow question and answer, the content-range header seems most a
It is not stripped off. Look for it in Request.Content.Headers. It looks like they aligned the headers with the HTTP/1.1 specifications--moving Entity Headers to Request.Content.Headers.
I tried it in a sample request and found it there.
I found this change after reading the relevant sections of RFC 2616. I've been going over it lately because the chief author, Fielding, is also the inventor of the REST architectural style, and I am trying to follow that style using ASP.NET Web API.
I realized that there was a distinction between "request", "response", "general" (used on both request and response but not entity related) and "entity" headers.
Looks as if the ASP.NET team revised the class model to better mirror the RFC, creating three subclasses of HttpHeaders:
These are the verbatim descriptions of the three classes in MSDN (the links are mine):
Note, though that MSDN class description is a bit mistaken - there is no Content Headers definition in the RFC, but it is clear they meant Entity Headers.