PowerKeys Scripting API
    Preparing search index...

    Interface HttpJsonResponse<T>

    An HTTP response whose non-empty body was parsed as JSON. The generic type is a compile-time assertion only and is not validated at runtime.

    interface HttpJsonResponse<T> {
        statusCode: number;
        headers: HttpResponseHeaders;
        data: T | null;
    }

    Type Parameters

    • T
    Index
    statusCode: number

    Real HTTP status code, including non-2xx statuses.

    Lowercase, duplicate-preserving response headers.

    data: T | null

    Parsed JSON value, or null when the response body is empty or contains only whitespace.