UNPKG

533 BTypeScriptView Raw
1import { Destination } from './destination';
2import { Protocol } from './protocol';
3/**
4 * Extracts the http protocol from the destination URL. The default value is http if no protocol is given.
5 * @param destination - URL of this destination is parsed
6 * @throws Error in case a unsupported protocol is given in the destination URL like rfc://example.com.
7 * @returns The protocol, either https or http.
8 */
9export declare function getProtocolOrDefault(destination: Destination): Protocol;
10//# sourceMappingURL=get-protocol.d.ts.map
\No newline at end of file