wsgidav.util.obtain_content_ranges

wsgidav.util.obtain_content_ranges(range_header, filesize)[source]

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range

Return tuple (range_list, total_length)

range_list

content ranges as values to their parsed components in the tuple (seek_position/abs position of first byte, abs position of last byte, num_of_bytes_to_read)

total_length

total length for Content-Length