Class TextResponse
Writes a generated response variant's text body (a string with a text/* content
type) as UTF-8, as is: not as a JSON string.
public sealed class TextResponse : IResult
- Inheritance
-
TextResponse
- Implements
- Inherited Members
Constructors
TextResponse(string, string, int)
Writes a generated response variant's text body (a string with a text/* content
type) as UTF-8, as is: not as a JSON string.
public TextResponse(string text, string contentType, int status)
Parameters
Methods
ExecuteAsync(HttpContext)
Write an HTTP response reflecting the result.
public Task ExecuteAsync(HttpContext httpContext)
Parameters
httpContextHttpContextThe HttpContext for the current request.
Returns
- Task
A task that represents the asynchronous execute operation.