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

Class M

packages/platform/node/test/HttpApi.test.ts:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101 describe("middleware", () => {
102 it.effect("error", () => {
103 class M extends HttpApiMiddleware.Service<M>()("Http/Logger", {
104 error: Schema.String
105 .pipe(
106 HttpApiSchema.status("MethodNotAllowed"),
107 HttpApiSchema.asText()
108 )
109 }) {}
110
111 const Api = HttpApi.make("api")
112 .add(

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
statusMethod · 0.45

Tested by

no test coverage detected