import {Handler, HttpClient, HttpsClient, Req, Res} from '..'; export class HttpClientHandler implements Handler { public async handle(req: Req): Promise { return req.uri.protocol() === 'https' ? HttpsClient(req) : HttpClient(req); } }