(pathname)
| 775 | } |
| 776 | |
| 777 | getServerPath(pathname) { |
| 778 | // duplicate slashes |
| 779 | if(this.options.pathPrefix.endsWith("/") && pathname.startsWith("/")) { |
| 780 | pathname = pathname.slice(1); |
| 781 | } |
| 782 | return `${this.options.pathPrefix}${pathname}`; |
| 783 | } |
| 784 | |
| 785 | getServerUrlRaw(host, pathname = "", isRaw = true) { |
| 786 | if(!this._server || !this._serverProtocol) { |
no outgoing calls
no test coverage detected