(request, host)
| 30 | } |
| 31 | |
| 32 | function getRequestURL(request, host) { |
| 33 | if (isAbsoluteURLPath(request.path)) { |
| 34 | return request.path; |
| 35 | } |
| 36 | return `${request.protocol}//${host}${request.path}`; |
| 37 | } |
| 38 | |
| 39 | // Convert a Headers object (Map<string, number | string | string[]>) to a plain object (Map<string, string>) |
| 40 | const convertHeaderObject = (headers = kEmptyObject) => { |
no test coverage detected
searching dependent graphs…