owonwo
04/18/2022, 11:19 PMgaryaustin
04/19/2022, 12:01 AMconst countHeader = this.headers['Prefer']?.match(/count=(exact|planned|estimated)/)
const contentRange = res.headers.get('content-range')?.split('/')
if (countHeader && contentRange && contentRange.length > 1) {
count = parseInt(contentRange[1])
}
owonwo
04/19/2022, 12:10 AMowonwo
04/19/2022, 12:10 AMgaryaustin
04/19/2022, 12:12 AMowonwo
04/19/2022, 12:13 AMowonwo
04/19/2022, 12:13 AM