The Userinfo type is an immutable encapsulation of username and password details for a URL. An existing Userinfo value is guaranteed to have a username set (potentially empty, as allowed by RFC 2396), and optionally a password.

Hierarchy

  • Userinfo

Constructors

Properties

Methods

Constructors

Properties

password: string = ''
username: string

Methods

  • Returns

    Parameters

    • redacted: boolean = false

      If true replaces any password with "xxxxx".

    Returns string

Generated using TypeDoc