Attention

You are looking at outdated documentation for version 2.x. A newer version is available.

wsgidav.util.obtainContentRanges

wsgidav.util.obtainContentRanges(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