anchor.diff:  -module(couch_httpd).
   -include("couch_db.hrl").
   
  --export([start_link/0, stop/0, handle_request/4]).
  +-export([start_link/0, stop/0, handle_request/5]).
   
   -export([header_value/2,header_value/3,qs_value/2,qs_value/3,qs/1,path/1,absolute_uri/2]).
   -export([verify_is_server_admin/1,unquote/1,quote/1,recv/2,recv_chunked/4,error_info/1]).
  
positive.code:         fun({UrlKey, SpecStr}) ->
              {?l2b(UrlKey), make_arity_2_fun(SpecStr)}
          end, couch_config:get("httpd_design_handlers")),
          
      UrlHandlers = dict:from_list(UrlHandlersList),
      DbUrlHandlers = dict:from_list(DbUrlHandlersList),
      DesignUrlHandlers = dict:from_list(DesignUrlHandlersList),
      Loop = fun(Req)->
              apply(?MODULE, handle_request,
                      [Req, UrlHandlers, DbUrlHandlers, DesignUrlHandlers])
          end,
  
      % and off we go
      
  
negative.code:             ?MODULE:stop();
          ("httpd", "port") ->
              ?MODULE:stop();
          ("httpd", "default_handler") ->
              ?MODULE:stop();
          ("httpd_global_handlers", _) ->
              ?MODULE:stop();
          ("httpd_db_handlers", _) ->
  