anchor.diff:          done ->
               mochiweb_socket:send(Req:socket(), ["0\r\n\r\n"]),
               ok
  -    end;
  -process_stream_generator(Req, Method, false = IsChunked, Generator, Acc) ->
  -    case Generator(Acc) of
  -        {output, Data, Acc1} ->
  -            mochiweb_socket:send(Req:socket(), [Data]),
  -            process_stream_generator(Req, Method, IsChunked, Generator, Acc1);
  -        done -> ok
       end.
   
   process_result(AppInfo, Req, {Status, Payload}) ->
  
positive.code:     end,
      Response2 = lists:foldl(fun({K, V}, Acc) -> Acc:header(K, V) end, Response1, Headers2),
      case Payload of
          {stream_raw, Generator, Acc0} ->
              Response2:build_response(),
              process_stream_generator(Request, RequestMethod, false, Generator, Acc0);
          {stream, Generator, Acc0} ->
              Response3 = Response2:data(chunked),
              Response3:build_response(),
              process_stream_generator(Request, RequestMethod, true, Generator, Acc0);
          _ ->
              (Response2:data(Payload)):build_response()
      end.
  
negative.code:             {error, ["Error: <pre>", io_lib:print(Payload), "</pre>"], []}
      end.
  
  process_stream_generator(_Req, 'HEAD', _Generator, _Acc) ->
      ok;
  process_stream_generator(Req, Method, Generator, Acc) ->
      case Generator(Acc) of
          {output, Data, Acc1} ->
              Length = iolist_size(Data),
  