shouldHandle(req) {
    if (this.options.path) {
      const index = req.url.indexOf('?');
      const pathname = index !== -1 ? req.url.slice(0, index) : req.url;

      if (pathname !== this.options.path) return false;
    }

    return true;
  }
See if a given request should be handled by this server instance.

@param {http.IncomingMessage} req Request object to inspect
@return {Boolean} `true` if the request is valid, else `false`
@public