Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/checkProtocol"

Index

Variables

Functions

Variables

Const ProtocolError

ProtocolError: any = require('../errors/ProtocolError')

Functions

Const checkProtocol

  • checkProtocol(url: string): any
  • Checks if the provided URL uses the HTTP or the HTTPS protocol and returns the corresponding module for that protocol Throws ProtocolError if the provided URL uses neither of those protocols

    Parameters

    • url: string

      The URL to be verified

    Returns any

Generated using TypeDoc