Created
October 1, 2019 13:35
-
-
Save tobbbe/de652e6c24b165eb40c6935d564eb3f1 to your computer and use it in GitHub Desktop.
return raw string from web api controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HttpGet] | |
public HttpResponseMessage ReturnRawString() | |
{ | |
return new HttpResponseMessage() | |
{ | |
Content = new StringContent( | |
Something.CreateString(), | |
Encoding.UTF8, | |
"text/plain" | |
) | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment