(value: string | undefined)
| 1355 | } |
| 1356 | |
| 1357 | const parseResetAfter = (value: string | undefined): Duration.Duration | undefined => { |
| 1358 | const numeric = parseNumberHeader(value) |
| 1359 | if (numeric === undefined || numeric <= 0) { |
| 1360 | return undefined |
| 1361 | } |
| 1362 | return Duration.max(Duration.seconds(numeric), Duration.millis(1)) |
| 1363 | } |
| 1364 | |
| 1365 | const parseResetHeader = ( |
| 1366 | clock: Clock, |
no test coverage detected