Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

of

  • of(protocol: string): Protocol | undefined
  • Get Protocol from its string representation.

    Parameters

    • protocol: string

      Protocol as string, either 'http' or 'https'.

    Returns Protocol | undefined

    Either the matching protocol or undefined