SAP AI SDK for JavaScript - v2.8.0
    Preparing search index...

    Type Alias RptRequestCompressionMiddlewareOptions

    RptRequestCompressionMiddlewareOptions: Omit<
        RequestCompressionMiddlewareOptions<"gzip">,
        "algorithm",
    > & {
        mode: Exclude<
            RequestCompressionMiddlewareOptions["mode"],
            undefined
            | "header-only",
        >;
    }

    Compression middleware options for requests to the RPT service endpoint.

    Type Declaration

    • mode: Exclude<RequestCompressionMiddlewareOptions["mode"], undefined | "header-only">

      The compression mode to use for requests to the RPT service endpoint.

      • always: Compress the request body for every request.
      • auto: Compress the request body only if it exceeds a certain size threshold (e.g., 1KB). This is the default behavior.
      • never: Do not compress the request body.

      Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.