Wed, 31 Dec 2014 06:55:46 +0100
Added tag TORBROWSER_REPLICA for changeset 6474c204b198
michael@0 | 1 | Bugs to fix: |
michael@0 | 2 | - make content-length generation not rely on .available() returning the entire |
michael@0 | 3 | size of the body stream's contents -- some sort of wrapper (but how does that |
michael@0 | 4 | work for the unscriptable method WriteSegments, which is good to support from |
michael@0 | 5 | a performance standpoint?) |
michael@0 | 6 | |
michael@0 | 7 | Ideas for future improvements: |
michael@0 | 8 | - add API to disable response buffering which, when called, causes errors when |
michael@0 | 9 | you try to do anything other than write to the body stream (i.e., modify |
michael@0 | 10 | headers or status line) once you've written anything to it -- useful when |
michael@0 | 11 | storing the entire response in memory is unfeasible (e.g., you're testing |
michael@0 | 12 | >4GB download characteristics) |
michael@0 | 13 | - add an API which performs asynchronous response processing (instead of |
michael@0 | 14 | nsIHttpRequestHandler.handle, which must construct the response before control |
michael@0 | 15 | returns; |void asyncHandle(request, response)|) -- useful, and can it be done |
michael@0 | 16 | in JS? |
michael@0 | 17 | - other awesomeness? |