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

Class M

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

Source from the content-addressed store, hash-verified

149 describe("middleware", () => {
150 it.effect("error", () => {
151 class M extends HttpApiMiddleware.Service<M>()("Http/Logger", {
152 error: Schema.String
153 .pipe(
154 HttpApiSchema.status("MethodNotAllowed"),
155 HttpApiSchema.asText()
156 )
157 }) {}
158
159 const Api = HttpApi.make("api")
160 .add(

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
statusMethod · 0.45

Tested by

no test coverage detected