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

Function withStateNames

packages/effect/src/http/HttpMiddleware.ts:305–309  ·  view source on GitHub ↗
(
  names: ReadonlyArray<string | RegExp>,
  stateNames: ReadonlyArray<string | RegExp> | undefined
)

Source from the content-addressed store, hash-verified

303}
304
305const withStateNames = (
306 names: ReadonlyArray<string | RegExp>,
307 stateNames: ReadonlyArray<string | RegExp> | undefined
308): ReadonlyArray<string | RegExp> =>
309 stateNames === undefined || stateNames.length === 0 ? names : [...names, ...stateNames]
310
311/**
312 * Middleware that creates a server trace span for each request and records request and response HTTP attributes.

Callers 2

responseSpanExitFunction · 0.85
HttpMiddleware.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected