Index of the byterange module
-
m
webob.byterange
...
-
C
ContentRange
...
- Represents the Content-Range header
-
C
Range
...
- Represents the Range header.
-
f
parse_bytes
...
- Parse a Range header into (bytes, list_of_ranges). Note that the
ranges are inclusive (like in HTTP, not like in Python
typically).
-
f
serialize_bytes
...
- Takes the output of parse_bytes and turns it into a header
-
f
bytes_to_python_ranges
...
- Converts the list-of-ranges from parse_bytes() to a Python-style
list of ranges (non-inclusive end points)
-
f
python_ranges_to_bytes
...
- Converts a Python-style list of ranges to what serialize_bytes
expects.
-
f
parse
...
- Parse the header; may return None if header is invalid
-
f
content_range
...
- Works like range_for_length; returns None or a ContentRange object
-
f
range_for_length
...
- If there is only one range, and if it is satisfiable by
the given length, then return a (begin, end) non-inclusive range
of bytes to serve. Otherwise return None
-
f
satisfiable
...
- Returns true if this range can be satisfied by the resource
with the given byte length.
-
f
__init__
...