TODO 916 B

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