anchor.diff:  increment_method_stats(Method) ->
       couch_stats_collector:increment({httpd_request_methods, Method}).
   
  +% if so, then it will not be rewritten, but will run as a normal couchdb request.
  +% normally you'd use this for _uuids _utils and a few of the others you want to keep available on vhosts. You can also use it to make databases 'global'.
  +vhost_global(VhostGlobals, MochiReq) ->
  +    "/"++Path = MochiReq:get(path),
  +    [true] == [true||V <- VhostGlobals, V == Path].
   
   % Utilities
   
  
positive.code:         UrlHandlers, DbUrlHandlers, DesignUrlHandlers).
  
  handle_request(MochiReq, DefaultFun,
      UrlHandlers, DbUrlHandlers, DesignUrlHandlers, VirtualHosts) ->
  
      % grab Host from Req
      Vhost = MochiReq:get_header_value("Host"),
  
      % find Vhost in config
      case couch_util:get_value(Vhost, VirtualHosts) of
          undefined -> % business as usual
              handle_request_int(MochiReq, DefaultFun,
                      UrlHandlers, DbUrlHandlers, DesignUrlHandlers);
          VhostTarget ->
              redirect_to_vhost(MochiReq, DefaultFun,
                  UrlHandlers, DbUrlHandlers, DesignUrlHandlers, VhostTarget)
      end.
  
  
  
negative.code:     Loop = fun(Req)->
          apply(?MODULE, handle_request, [
              Req, DefaultFun, UrlHandlers, DbUrlHandlers, DesignUrlHandlers,
                  VirtualHosts, VhostGlobals
          ])
      end,
  
  