netwerk/test/httpserver/TODO

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/test/httpserver/TODO	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +Bugs to fix:
     1.5 +- make content-length generation not rely on .available() returning the entire
     1.6 +  size of the body stream's contents -- some sort of wrapper (but how does that
     1.7 +  work for the unscriptable method WriteSegments, which is good to support from
     1.8 +  a performance standpoint?)
     1.9 +
    1.10 +Ideas for future improvements:
    1.11 +- add API to disable response buffering which, when called, causes errors when
    1.12 +  you try to do anything other than write to the body stream (i.e., modify
    1.13 +  headers or status line) once you've written anything to it -- useful when
    1.14 +  storing the entire response in memory is unfeasible (e.g., you're testing
    1.15 +  >4GB download characteristics)
    1.16 +- add an API which performs asynchronous response processing (instead of
    1.17 +  nsIHttpRequestHandler.handle, which must construct the response before control
    1.18 +  returns; |void asyncHandle(request, response)|) -- useful, and can it be done
    1.19 +  in JS?
    1.20 +- other awesomeness?

mercurial