I would like to have access to the response in SetDefaultContentHeaders when inheriting the BufferedMediaTypeFormatter. The reason for this is that I might want to set some of the content header values based on the object I am returning, like file name if I am returning a file. It would be nice if there were an overload like: <br /><br /> public override void SetDefaultContentHeaders(Type type, object value, HttpContentHeaders headers, MediaTypeHeaderValue mediaType)<br />
↧