Stone.js API
    Preparing search index...
    • Get hostname.

      Parameters

      • ip: string

        The IP address of the request.

      • headers: IncomingHttpHeaders

        The headers from the incoming request.

      • options: { trusted: (string | RegExp)[]; trustedIp: string[]; untrustedIp: string[] }

        Options for trusted IPs, fallback, etc.

      Returns string

      The hostname from the request.