(response: Response, fallback?: string)
| 245 | } |
| 246 | |
| 247 | function getRequestId(response: Response, fallback?: string): string | null { |
| 248 | return ( |
| 249 | response.headers.get('request-id') ?? |
| 250 | response.headers.get('x-request-id') ?? |
| 251 | fallback ?? |
| 252 | null |
| 253 | ) |
| 254 | } |
| 255 | |
| 256 | function createBaseUsage() { |
| 257 | return { |
no test coverage detected