(a: string, b: string)
| 78 | }; |
| 79 | |
| 80 | const timingSafeEqual = (a: string, b: string): boolean => { |
| 81 | if (a.length !== b.length) return false; |
| 82 | let diff = 0; |
| 83 | for (let i = 0; i < a.length; i++) { |
| 84 | diff |= a.charCodeAt(i) ^ b.charCodeAt(i); |
| 85 | } |
| 86 | return diff === 0; |
| 87 | }; |
| 88 | |
| 89 | const requestHeaders = Effect.map(HttpServerRequest.HttpServerRequest.asEffect(), (req) => ({ |
| 90 | ...req.headers, |
no outgoing calls
no test coverage detected