The class ODataMessageWriter
in Microsoft.Data.OData.dll, v5.6.1.0 accepts constructors that take IODataRequestMessage requestMessage
as well as IODataResponseMessage responseMessage
. The question is when to use one or the other.
I'm implementing a OData service by hand using ODataMessageWriter, and I'd like to get the headers of my response correct based on the headers in the request... but there seems to require a lot of manual coding to get all the headers right (accept, content-type, DataServiceVersion, etc)... Am I missing something?