anchor.diff:             path="",
              length=0,
              chunked_send_p,
  +           mime_type,
              timeout}).
   
   %% we spawn into the handler fun, monitors it, and waits for data chunks.
   handle(M) ->
     Self = self(),
     {Mod,Fun} = mod_get(M,handler_function),
  -  S = #s{chunked_send_p=chunked_send_p(M),
  -         timeout=mod_get(M,handler_timeout)},
     Act = fun(defer)          -> exit(defer);
              ({redirect,URL}) -> exit({redirect,URL});
              (L)              -> Self ! {self(),L}
  
positive.code:   Mpl = lists:zip(record_info(fields,mod),tl(tuple_to_list(M))),
    Req = fun(all) -> proplists:unfold(Mpl);
             (Key) -> proplists:get_value(Key,Mpl) end,
    loop(spawn_monitor(fun() -> Mod:Fun(Act,Req) end),S,M).
  
  mod_get(M,Key) ->
    httpd_util:lookup(M#mod.config_db,Key,default(Key)).
  
negative.code:       S
    end.
  
  check_headers(Chunk,S) ->
    case is_headers(Chunk) of
      true -> {Chunk,""};
      false-> {[{"content-type",S#s.mime_type}],Chunk}
    end.
  
  is_headers([{_,_}|L]) -> is_headers(L);
  