(url: string)
| 32 | } |
| 33 | |
| 34 | export const nodeHTTPRequestRouter = (url: string) => { |
| 35 | let isHTTP = true; |
| 36 | if (Array.isArray(url)) { |
| 37 | isHTTP = url.every(urlItem => io.isHTTPScheme(urlItem)); |
| 38 | } else { |
| 39 | isHTTP = io.isHTTPScheme(url); |
| 40 | } |
| 41 | if (isHTTP) { |
| 42 | return nodeHTTPRequest(url); |
| 43 | } |
| 44 | return null; |
| 45 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…