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

Function layerProtocolHttp

packages/effect/src/unstable/rpc/RpcServer.ts:1161–1165  ·  view source on GitHub ↗
(options: {
  readonly path: HttpRouter.PathInput
})

Source from the content-addressed store, hash-verified

1159 * @since 4.0.0
1160 */
1161export const layerProtocolHttp = (options: {
1162 readonly path: HttpRouter.PathInput
1163}): Layer.Layer<Protocol, never, RpcSerialization.RpcSerialization | HttpRouter.HttpRouter> => {
1164 return Layer.effect(Protocol)(makeProtocolHttp(options))
1165}
1166
1167/**
1168 * 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