MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / serveTestHttpApp

Function serveTestHttpApp

packages/core/sdk/src/testing.ts:77–86  ·  view source on GitHub ↗
(
  handler: (request: TestHttpRequest) => Effect.Effect<TestHttpResponse>,
)

Source from the content-addressed store, hash-verified

75 );
76
77export const serveTestHttpApp = (
78 handler: (request: TestHttpRequest) => Effect.Effect<TestHttpResponse>,
79): Effect.Effect<
80 TestHttpServerShape,
81 TestHttpServerAddressError | TestHttpServerServeError,
82 EffectScope.Scope
83> =>
84 makeTestHttpServer(
85 HttpServer.serve(HttpServerRequest.HttpServerRequest.asEffect().pipe(Effect.flatMap(handler))),
86 );
87
88export const serveTestHttpServerLayer = (
89 serverLayer: Layer.Layer<never, any, any>,

Callers 13

serveMetadataServerFunction · 0.90
serveOAuthFixtureFunction · 0.90
serveTokenEndpointFunction · 0.90
servePaginatedListServerFunction · 0.90
serveCallToolServerFunction · 0.90
plugin.test.tsFile · 0.90
serveProbeEndpointFunction · 0.90
plugin.test.tsFile · 0.90
serveGraphqlTestServerFunction · 0.90

Calls 1

makeTestHttpServerFunction · 0.85

Tested by 8

serveMetadataServerFunction · 0.72
serveOAuthFixtureFunction · 0.72
serveTokenEndpointFunction · 0.72
servePaginatedListServerFunction · 0.72
serveCallToolServerFunction · 0.72
serveProbeEndpointFunction · 0.72