Skip to content

Instantly share code, notes, and snippets.

@cdeutsch
Last active December 29, 2015 11:29
Show Gist options
  • Select an option

  • Save cdeutsch/7663643 to your computer and use it in GitHub Desktop.

Select an option

Save cdeutsch/7663643 to your computer and use it in GitHub Desktop.
HttpResponseMessage response = new HttpResponseMessage(HttpStatusCode.OK);
response.Content = new StringContent(<SOME OBJECT CONVERTED TO STRING FORMAT>);
response.Content.Headers.ContentType = new MediaTypeHeaderValue("application/xml");
return response;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment