Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration Protocol

Index

Enumeration members

Functions

Enumeration members

HTTP

HTTP: = "http"

HTTPS

HTTPS: = "https"

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