@gradientedge/commercetools-utils
    Preparing search index...

    Interface CommercetoolsRequestResponse

    Represents the request and response for a request made to commercetools

    interface CommercetoolsRequestResponse {
        request: {
            data?: any;
            headers?: Record<string, string>;
            method: string;
            params?: Record<string, string | number | boolean>;
            url: string;
        };
        response: {
            code?: string;
            data?: any;
            headers?: Record<string, string>;
            message?: string;
            status?: number;
            tlsVersion?: string;
        };
        stats: CommercetoolsRequestResponseStats;
    }
    Index

    Properties

    request: {
        data?: any;
        headers?: Record<string, string>;
        method: string;
        params?: Record<string, string | number | boolean>;
        url: string;
    }
    response: {
        code?: string;
        data?: any;
        headers?: Record<string, string>;
        message?: string;
        status?: number;
        tlsVersion?: string;
    }

    Type Declaration

    • Optionalcode?: string
    • Optionaldata?: any
    • Optionalheaders?: Record<string, string>
    • Optionalmessage?: string
    • Optionalstatus?: number
    • OptionaltlsVersion?: string

      The TLS protocol version negotiated for the request (e.g. TLSv1.3). Will be undefined if the request was not made over TLS or the negotiated protocol could not be determined.