RUM JavaScript API - 1.347.4
    Preparing search index...

    Interface ReportWebRequestOptions

    Options for manually reporting an HTTP request captured via Cordova HTTP plugins.

    interface ReportWebRequestOptions {
        duration: number;
        method: string;
        requestHeaders?: Record<string, string>;
        responseHeaders?: Record<string, string>;
        startTime: number;
        statusCode: number;
        statusText?: string;
        traceParent?: string;
        url: string;
    }
    Index

    Properties

    duration: number

    The duration of the request in milliseconds.

    method: string

    The HTTP method (e.g. "GET", "POST").

    requestHeaders?: Record<string, string>

    Request headers sent with the request.

    responseHeaders?: Record<string, string>

    Response headers received from the server.

    startTime: number

    The start time of the request as a Unix timestamp in milliseconds.

    statusCode: number

    The HTTP status code of the response. Use 0 for aborted requests, negative values for Cordova internal errors.

    statusText?: string

    The HTTP status text (e.g. "OK", "Not Found").

    traceParent?: string

    The W3C traceparent header value used to correlate the request with a distributed trace (e.g. "00-traceId-spanId-01").

    url: string

    The URL of the HTTP request.