(a: string, b: string)
| 85 | }; |
| 86 | |
| 87 | const timingSafeEqual = (a: string, b: string): boolean => { |
| 88 | if (a.length !== b.length) return false; |
| 89 | let diff = 0; |
| 90 | for (let i = 0; i < a.length; i++) { |
| 91 | diff |= a.charCodeAt(i) ^ b.charCodeAt(i); |
| 92 | } |
| 93 | return diff === 0; |
| 94 | }; |
| 95 | |
| 96 | const requestHeaders = Effect.map(HttpServerRequest.HttpServerRequest.asEffect(), (req) => ({ |
| 97 | ...req.headers, |
no outgoing calls
no test coverage detected