code: function splitURL(url) {
      var method, path, match = /^([A-Z]+)(?:\s+|$)/.exec(url);
      if (match) {
          method = match[1];
          path = /^[A-Z]+\s+(.*)$/.exec(url);
          url = path ? path[1]: '';
      }
      return {url: url, method: method};
  }
docs: /*
  Break apart a url into the path matching regular expression and the
  optional method prefix.