Created
April 25, 2010 00:19
-
-
Save mandykoh/378061 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var content = Encoding.UTF8.GetBytes("Hello, World!"); | |
| using (var contentSource = new ByteArraySource(content)) { | |
| var response = new HttpResponse(HttpStatuses.OK, "OK"); | |
| response.Headers.Set("Content-Type", "text/plain"); | |
| response.Body = contentSource; | |
| /* Do something with the response ... */ | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment