The purpose of these classes is to provide a uniform interface for clients to standard HTTP responses, single range responses and multipart range responses.
| Class | RangeFile | File-like object that allow access to partial available data. |
| Function | handle_response | Interpret the code & headers and wrap the provided data in a RangeFile. |
This is a factory method which returns an appropriate RangeFile based on the code & headers it's given.
| Parameters | url | The url being processed. Mostly for error reporting |
| code | The integer HTTP response code | |
| msg | An HTTPMessage containing the headers for the response | |
| data | A file-like object that can be read() to get the requested data | |
| Returns | A file-like object that can seek()+read() the ranges indicated by the headers. | |