(req)
| 49 | |
| 50 | // Returns the URL of the given HTTP request |
| 51 | getRequestUrl (req) { |
| 52 | const { hostname, pathname } = this._parseUrl(req) |
| 53 | return this.resolveUrl(hostname, pathname) |
| 54 | } |
| 55 | |
| 56 | // Returns the URL corresponding to the relative path on the pod |
| 57 | resolveUrl (hostname, pathname = '') { |
no test coverage detected