Table of Contents

Class ContentResult

Namespace
Fdyay.IdentityServer.Hosting
Assembly
Fdyay.IdentityServer.AspNetCore.dll

Writes a plain-text response body.

public sealed class ContentResult : IEndpointResult
Inheritance
ContentResult
Implements
Inherited Members

Constructors

ContentResult(string, string)

Holds the body to write.

public ContentResult(string content, string contentType = "text/plain; charset=UTF-8")

Parameters

content string

The response body, written as UTF-8.

contentType string

The response's content type. Defaults to text/plain; charset=UTF-8.

Methods

ExecuteAsync(HttpContext)

Writes the result to the response.

public Task ExecuteAsync(HttpContext context)

Parameters

context HttpContext

The request whose response is written.

Returns

Task