Package: @effect/platform
Module: HttpApiBuilder
Build an HttpApp from an HttpApi instance, and serve it using an
HttpServer.
Optionally, you can provide a middleware function that will be applied to
the HttpApp before serving.
Signature
declare const serve: <R = never>(middleware?: (httpApp: HttpApp.Default) => HttpApp.Default<never, R>) => Layer.Layer<never, never, HttpServer.HttpServer | HttpRouter.HttpRouter.DefaultServices | Exclude<R, Scope | HttpServerRequest.HttpServerRequest> | HttpApi.Api>
Since v1.0.0