anchor.diff:  -module(elli_http).
   -include("../include/elli.hrl").
   
  --export([start_link/3, accept/3, handle_request/2, chunk_loop/2,
  +-export([start_link/3, accept/3, handle_request/2, chunk_loop/1,
            split_args/1, parse_path/1]).
   
   -export([mk_req/7]). %% useful when testing.
  
positive.code: %% user. We forward anything the user sends until the user sends an
  %% empty response, which signals that the connection should be
  %% closed. When the client closes the socket, the loop exits.
  start_chunk_loop(Socket, Callback) ->
      inet:setopts(Socket, [{active, once}]),
      ?MODULE:chunk_loop(Socket, Callback).
  
  chunk_loop(Socket, {Mod, Args} = Callback) ->
      receive
          {tcp_closed, Socket} ->
              Mod:handle_event(client_closed, [during_response], Args),
              exit(normal);
  
          {chunk, <<>>} ->
              gen_tcp:send(Socket, <<"0\r\n\r\n">>),
              gen_tcp:close(Socket),
              ok;
          {chunk, <<>>, From} ->
              case gen_tcp:send(Socket, <<"0\r\n\r\n">>) of
                  ok ->
  
negative.code: 
          {chunk, Data} ->
              send_chunk(Socket, Data),
              ?MODULE:chunk_loop(Socket);
          {chunk, Data, From} ->
              case send_chunk(Socket, Data) of
                  ok ->
  