Skip to main content
  • get protocol(): string

    The protocol of the current server URL, with its colon: “http:” or “https:”. Like hostname, port and pathname, this matches the JavaScript API’s property of the same name, which existing code reads.

    Returns string