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

    Interface RptRequestOptions

    Custom options for how requests to the RPT service endpoint are performed.

    interface RptRequestOptions {
        compress?: RptRequestCompressionMiddlewareOptions;
        httpAgent?: any;
        httpsAgent?: any;
        maxContentLength?: number;
        middleware?: HttpMiddleware[];
        parameterEncoder?: ParameterEncoder;
        proxy?: false;
        signal?: AbortSignal;
        [key: string]: any;
    }

    Hierarchy

    • CustomRequestConfig
      • RptRequestOptions

    Indexable

    • [key: string]: any
    Index

    Properties

    Options to configure request compression.

    This option does not affect responses, only requests. Prediction requests with parquet will not be compressed even if the option is set, as they are already in a compressed binary format. Compression will be disabled if custom middlewares are provided in the destination or fetch options.

    httpAgent?: any

    The custom agent used when performing http requests.

    httpsAgent?: any

    The custom agent used when performing https requests.

    maxContentLength?: number

    The max size of the http response content in bytes.

    middleware?: HttpMiddleware[]

    Middleware @sap-cloud-sdk/resilience!Middleware to be applied to the request. The request context is set using @sap-cloud-sdk/http-client!HttpMiddlewareContext.

    parameterEncoder?: ParameterEncoder

    Encoder for the query parameters key and values. Per default parameters and keys are percent encoded.

    proxy?: false

    Set this to false to disable the proxy. To configure the proxy you can add a @sap-cloud-sdk/connectivity!ProxyConfiguration to your destination.

    signal?: AbortSignal

    An AbortSignal to cancel the request.

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