Table of Contents

Interface IHttpResponseWriter<T>

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

Writes an IEndpointResult as the HTTP response, in place of the result itself. Duende's.

public interface IHttpResponseWriter<in T> where T : IEndpointResult

Type Parameters

T

The result type this writes.

Remarks

Registered with AddHttpWriter<TResult, TWriter>() for one result type, and asked for that type only: with none registered the result writes itself. A writer owns the response it writes — status, headers and body — and may decorate the result's own answer by calling ExecuteAsync(HttpContext) itself.

Methods

WriteHttpResponse(T, HttpContext)

Writes the endpoint result to the HTTP response.

Task WriteHttpResponse(T result, HttpContext context)

Parameters

result T
context HttpContext

Returns

Task