1 Matching Annotations
- Mar 2024
-
giraffe.wiki giraffe.wiki
-
The main differences are: Additionally to HttpHandler functions there is a new type called Endpoint The router is a flat list of Endpoint functions The GET, POST, route, etc. functions map a conventional HttpHandler to an Endpoint function (when the Giraffe.EndpointRouting module has been opened) The final Endpoint list has to be passed into ASP.NET Core's EndpointMiddleware instead of using the GiraffeMiddleware
Q: How does
HttpHandler
composition work then?I guess that all the composition should be done inside the
HttpHandler
passed to theEndPointRouting
functions.edit: It does state below that
The
choose
handler is replaced by composing anEndpoint list
.
Tags
Annotators
URL
-