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

Function layerProtocolHttp

packages/effect/src/rpc/RpcServer.ts:1556–1561  ·  view source on GitHub ↗
(options: {
  readonly path: HttpRouter.PathInput
  readonly streamBufferSize?: number | "unbounded" | undefined
})

Source from the content-addressed store, hash-verified

1554 * @since 4.0.0
1555 */
1556export const layerProtocolHttp = (options: {
1557 readonly path: HttpRouter.PathInput
1558 readonly streamBufferSize?: number | "unbounded" | undefined
1559}): Layer.Layer<Protocol, never, RpcSerialization.RpcSerialization | HttpRouter.HttpRouter> => {
1560 return Layer.effect(Protocol)(makeProtocolHttp(options))
1561}
1562
1563/**
1564 * Starts an RPC server for a group and returns the HTTP request/response effect

Callers 1

layerHttpFunction · 0.70

Calls 1

makeProtocolHttpFunction · 0.85

Tested by

no test coverage detected