Skip to content

Commit

Permalink
Response generator copy-editing
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdecock authored Jan 25, 2024
1 parent 80425b5 commit 7e0b813
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ chapter = true

# Response Generators

IdentityServer's endpoints follow a pattern of abstraction in which a response generator uses a validated input model to produce a response model. The response model is a type that represents the data that will be returned from the endpoint. The response model is then wrapped in Result model, which is a type that facilitates serialization by an implementation of *IHttpResponseWriter*.
IdentityServer's endpoints follow a pattern of abstraction in which a response generator uses a validated input model to produce a response model. The response model is a type that represents the data that will be returned from the endpoint. The response model is then wrapped in a result model, which is a type that facilitates serialization by an implementation of *IHttpResponseWriter*.

Customization of protocol endpoint responses is possible in both the response generators and response writers.
Response generator customizations are appropriate when you want to change the "business logic" of the endpoint and is typically accomplished by overriding virtual methods in the default response generator. Response writer customizations are appropriate when you want to change the serialization, encoding, or headers of the HTTP response and is accomplished by registering a custom implementation of the *IHttpResponseWriter*.
Customization of protocol endpoint responses is possible in both the response generators and response writers. Response generator customization is appropriate when you want to change the "business logic" of an endpoint and is typically accomplished by overriding virtual methods in the default response generator. Response writer customization is appropriate when you want to change the serialization, encoding, or headers of the HTTP response and is accomplished by registering a custom implementation of the *IHttpResponseWriter*.

{{%children style="h4" /%}}

0 comments on commit 7e0b813

Please sign in to comment.