MCPcopy Create free account
hub / github.com/Effect-TS/effect / layerHttpOptions

Function layerHttpOptions

packages/effect/src/unstable/cluster/HttpRunner.ts:203–218  ·  view source on GitHub ↗
(options: {
  readonly path: HttpRouter.PathInput
})

Source from the content-addressed store, hash-verified

201 * @since 4.0.0
202 */
203export const layerHttpOptions = (options: {
204 readonly path: HttpRouter.PathInput
205}): Layer.Layer<
206 Sharding.Sharding | Runners.Runners,
207 never,
208 | RunnerStorage
209 | RunnerHealth
210 | RpcSerialization.RpcSerialization
211 | MessageStorage
212 | ShardingConfig.ShardingConfig
213 | Runners.RpcClientProtocol
214 | HttpRouter.HttpRouter
215> =>
216 RunnerServer.layerWithClients.pipe(
217 Layer.provide(RpcServer.layerProtocolHttp(options))
218 )
219
220/**
221 * Layer that adds WebSocket runner routes to the provided `HttpRouter`.

Callers 1

HttpRunner.tsFile · 0.85

Calls 2

pipeMethod · 0.65
provideMethod · 0.45

Tested by

no test coverage detected