(path)
| 24 | const kRequestUrl = Symbol('kRequestUrl'); |
| 25 | |
| 26 | function isAbsoluteURLPath(path) { |
| 27 | return typeof path === 'string' && |
| 28 | (StringPrototypeStartsWith(path, 'http://') || |
| 29 | StringPrototypeStartsWith(path, 'https://')); |
| 30 | } |
| 31 | |
| 32 | function getRequestURL(request, host) { |
| 33 | if (isAbsoluteURLPath(request.path)) { |