anchor.diff:      end.
   
   
  +%%
  +%% CHUNKED-TRANSFER
  +%%
  +
  +
   %% @doc: The chunk loop is an intermediary between the socket and the
   %% user. We forward anythingthe user sends until the user sends an
   %% empty response, which signals that the connection should be
  
positive.code:             []
      end.
  
  
  content_length(Body)->
      {<<"Content-Length">>, iolist_size(Body)}.
  
  
  
  
negative.code:     gen_tcp:send(Socket, Response).
  
  
  %%
  %% RECEIVE REQUEST
  %%
  
  %% @doc: Retrieves the request line
  get_request(Socket, Callback) ->
      get_request(Socket, <<>>, Callback).
  
  