MCPcopy
hub / github.com/vercel/next.js / readMiddlewareError

Function readMiddlewareError

test/e2e/middleware-general/test/index.test.ts:102–104  ·  view source on GitHub ↗
(response)

Source from the content-addressed store, hash-verified

100 }
101
102 function readMiddlewareError(response) {
103 return response.headers.get('error')
104 }
105
106 function runTests({ i18n }: { i18n?: boolean }) {
107 it('should not treat as _next/data request with just header', async () => {

Callers 1

runTestsFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected