(value: string | undefined)
| 1922 | } |
| 1923 | |
| 1924 | const parseResetAfter = (value: string | undefined): Duration.Duration | undefined => { |
| 1925 | const numeric = parseNumberHeader(value) |
| 1926 | if (numeric === undefined || numeric <= 0) { |
| 1927 | return undefined |
| 1928 | } |
| 1929 | return Duration.max(Duration.seconds(numeric), Duration.millis(1)) |
| 1930 | } |
| 1931 | |
| 1932 | const parseResetHeader = ( |
| 1933 | clock: Clock, |
no test coverage detected