( f: (router: HttpRouter) => Effect.Effect<A, E, R> )
| 476 | * @since 4.0.0 |
| 477 | */ |
| 478 | export const use = <A, E, R>( |
| 479 | f: (router: HttpRouter) => Effect.Effect<A, E, R> |
| 480 | ): Layer.Layer<never, E, HttpRouter | Exclude<R, Scope.Scope>> => Layer.effectDiscard(Effect.flatMap(HttpRouter, f)) |
| 481 | |
| 482 | /** |
| 483 | * Create a layer that adds a single route to the HTTP router. |