Beignet API reference
    Preparing search index...

    Interface TrustedRequestInfo

    Request metadata after applying an explicit trusted-proxy policy.

    interface TrustedRequestInfo {
        clientIp?: string;
        host: string;
        origin: string;
        protocol: "http" | "https";
        trustedProxy: boolean;
        url: URL;
    }
    Index
    clientIp?: string

    Resolved client IP when a trusted client-IP source is configured.

    host: string

    External request host, including port when present.

    origin: string

    External request origin.

    protocol: "http" | "https"

    External request protocol without a trailing colon.

    trustedProxy: boolean

    Whether forwarding headers were eligible to affect this result.

    url: URL

    URL as seen by the app or reconstructed from trusted proxy headers.