This is similar to the asp.net mvc's ContentResult. It makes returning plain text easier. I named it TextResponse rather then ContentResponse coz I think Text is more precise.
I have created a new response called TextResponse.
var response = new TextRespone("sample text");
response = new TextResponse("sample text", "text/cache-manifest");
I have also added response formatter extension methods.
return Response.AsText("sample text");
return Response.AsText("sample text", "text/cache-manifest");
added AsText response formatter extensions
Text formatter tests
Merge pull request #598 from prabirshrestha/TextResponse
TextResponse and AsText