#1193: adding support for http byte range in http_common.do_http
------------------------------------------------+---------------------------
Reporter: guyzmo | Owner: guyzmo
Type: enhancement | Status: new
Priority: major | Milestone: undecided
Component: code-frontend-cli | Version: 1.8β
Keywords: http range do_http partial content | Launchpad Bug:
------------------------------------------------+---------------------------
I'm using the same API as tahoe-get.py and I needed to have 'very big
files' supported through that API. So I patched do_http() so it has a
headers dictionary as parameter in which one can add different options.
I patched also tahoe_get.get() so it supports Partial Content answers
(206), and added a 'frange' variable set to None, because I didn't know
what CLI option to choose for content retrieval, and did not want to
change cli.py. frange shall be a list (or tuple) of two elements :
{{{
start = 12
end = 42
frange=[start, end]
}}}
--
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1193>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage
_______________________________________________
tahoe-dev mailing list
[email protected]
http://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev