@panesofglass: I'm already doing the serialization myself, but your sample (in addition to the library's source) has pointed me in the right direction. It doesn't look like it's going to be as straightforward as I thought since content negotiation apparently
isn't performed at all until a serializable object is returned. Since I'm handling the serialization, looks like I have to do the content type negotiation as well.
josheinstein
0 Points
3 Posts
Re: HttpResponseMessage that plays nice with content negotiation
Mar 29, 2012 05:15 AM|LINK
@panesofglass: I'm already doing the serialization myself, but your sample (in addition to the library's source) has pointed me in the right direction. It doesn't look like it's going to be as straightforward as I thought since content negotiation apparently isn't performed at all until a serializable object is returned. Since I'm handling the serialization, looks like I have to do the content type negotiation as well.