Function
layer
(
evaluate: LazyArg<Http.Server | Http2.Http2Server | Http2.Http2SecureServer>,
options: Options
)
Source from the content-addressed store, hash-verified
| 895 | * @since 4.0.0 |
| 896 | */ |
| 897 | export const layer = ( |
| 898 | evaluate: LazyArg<Http.Server | Http2.Http2Server | Http2.Http2SecureServer>, |
| 899 | options: Options |
| 900 | ): Layer.Layer< |
| 901 | HttpServer.HttpServer | NodeServices.NodeServices | HttpPlatform.HttpPlatform | Etag.Generator, |
| 902 | ServeError |
| 903 | > => |
| 904 | Layer.mergeAll( |
| 905 | layerServer(evaluate, options), |
| 906 | layerHttpServices |
| 907 | ) |
| 908 | |
| 909 | /** |
| 910 | * Provides a Node `HttpServer` together with the Node HTTP platform, ETag, |
Tested by
no test coverage detected