IHttpResponseWriter
The IHttpResponseWriter interface is the contract for services that can produce HTTP responses for IEndpointResults.
This is a low level abstraction that is intended to be used if you need to customize the serialization, encoding, or
HTTP headers in a response from a protocol endpoint.
IdentityServer ships a concrete implementation, AuthorizeInteractionPageHttpWriter, that handles redirects to login,
consent, create-account, and custom interaction pages. It is public and designed to be subclassed: you can override
BuildReturnUrlAsync, BuildRedirectUrlAsync, or WriteResponseAsync to change how those redirects are constructed
and delivered. See Customizing authorize interaction redirects for a how-to
guide and code examples.
Duende.IdentityServer.Hosting.IHttpResponseWriter
Section titled “Duende.IdentityServer.Hosting.IHttpResponseWriter”/// <summary>/// Contract for a service that writes appropriate http responses for <see/// cref="IEndpointResult"/> objects./// </summary>public interface IHttpResponseWriter<in T> where T : IEndpointResult{ /// <summary> /// Writes the endpoint result to the HTTP response. /// </summary> Task WriteHttpResponse(T result, HttpContext context);}Duende.IdentityServer.Hosting.IEndpointResult
Section titled “Duende.IdentityServer.Hosting.IEndpointResult”/// <summary>/// An <see cref="IEndpointResult"/> is the object model that describes the/// results that will returned by one of the protocol endpoints provided by/// IdentityServer, and can be executed to produce an HTTP response./// </summary>public interface IEndpointResult{ /// <summary> /// Executes the result to write an http response. /// </summary> /// <param name="context">The HTTP context.</param> Task ExecuteAsync(HttpContext context);}