Lines Matching refs:Range
3 __all__ = ['Range', 'ContentRange']
8 class Range(object):
10 Represents the Range header.
14 assert end is None or end >= 0, "Bad range end: %r" % end
20 *If* there is only one range, and *if* it is satisfiable by
21 the given length, then return a (start, end) non-inclusive range
43 response.content_range = req.range.content_range(response.content_length)
45 Though it's still up to you to actually serve that content range!
47 range = self.range_for_length(length)
48 if range is None:
50 return ContentRange(range[0], range[1], length)
92 Represents the Content-Range header
103 self.stop = stop # this is python-style range end (non-inclusive)
156 # "content-range: bytes 0-50/10" is invalid for a response
157 # "range: bytes 0-50" is valid for a request to a 10-bytes entity