MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / withMiddleware

Function withMiddleware

console/src/api/apiClient.ts:82–87  ·  view source on GitHub ↗
(
  fetch: Fetch,
  ...middlewares: Middleware[]
)

Source from the content-addressed store, hash-verified

80 * @returns A new fetch function with all middlewares applied
81 */
82export function withMiddleware(
83 fetch: Fetch,
84 ...middlewares: Middleware[]
85): Fetch {
86 return composeMiddleware(...middlewares)(fetch);
87}
88
89/**
90 * Creates a new Headers object and copies headers from fetch arguments

Callers 4

apiClient.test.tsFile · 0.90
constructorMethod · 0.85
CloudApiClientClass · 0.85

Calls 1

composeMiddlewareFunction · 0.85

Tested by

no test coverage detected