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 the EndPointRouting functions.
edit: It does state below that
The
choosehandler is replaced by composing anEndpoint list.