1 Matching Annotations
  1. Mar 2024
    1. 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 choose handler is replaced by composing an Endpoint list.