SAP Cloud SDK for JavaScript - v4.5.1
    Preparing search index...
    • Middleware to compress HTTP request payloads.

      Type Parameters

      Parameters

      Returns HttpMiddleware

      An HTTP middleware that compresses request payloads based on the provided options.

      Middleware Ordering: Place compression middleware early in your middleware array, typically after logging/csrf but before resilience middleware (retry, timeout, circuit breaker). This ensures the payload is compressed once and reused across retry attempts.

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