wsgidav.util.obtain_content_ranges

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

returns tuple (list, value)

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)
value
total length for Content-Length