There are three strongly-typed HTTP header classes in the System.Net.Http.Headers namespace:
HttpContentHeaders (which is accessible via the Headers
property of any of the System.Net.Http.HttpContent types) has pre-defined properties for Content-Type, Content-Length, Content-Encoding etc... (which seem to be the headers you were after).
You can set them like this:
var content = new StringContent("foo");
content.Headers.Expires = DateTime.Now.AddHours(4);
content.Headers.ContentType.MediaType = "text/plain";
...and the header names will be set correctly.