HttpRequestMessage
Has Content.Headers and Headers
Why is that? when I google Http protocol online, I don't see anyone mentioning a content header and a normal header, there are only "headers"
Unfortunately, the MSDN documentation for MVC, WebAPI and System.Net.Http are appaling. See HttpContentHeaders.ContentType Property:
Gets or sets {insert text here}.
Well-known content-specific headers are grouped under "content headers". It's just for convenience. There are headers like content-type
, content-length
, and so on, as seen in HttpContentHeaders Class:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With