(url)
| 407 | * @return {?string} |
| 408 | */ |
| 409 | export function getProxyServingType(url) { |
| 410 | url = urlAsLocation(url); |
| 411 | if (!isProxyOrigin(url)) { |
| 412 | return null; |
| 413 | } |
| 414 | const path = url.pathname.split('/', 2); |
| 415 | return path[1]; |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Returns whether the URL has valid protocol. |
no test coverage detected