# 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

- Defined in packages/rpt/dist/types.d.ts:130

##### Index

### Properties

compress?
httpAgent?
httpsAgent?
maxContentLength?
middleware?
parameterEncoder?
proxy?
signal?

## Properties

### `Optional` compress

compress?: RptRequestCompressionMiddlewareOptions

Options to configure request compression.

#### Remarks

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.

- Defined in packages/rpt/dist/types.d.ts:137

### `Optional` httpAgent

httpAgent?: any

The custom agent used when performing http requests.

Inherited from CustomRequestConfig.httpAgent

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:112

### `Optional` httpsAgent

httpsAgent?: any

The custom agent used when performing https requests.

Inherited from CustomRequestConfig.httpsAgent

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:116

### `Optional` maxContentLength

maxContentLength?: number

The max size of the http response content in bytes.

Inherited from CustomRequestConfig.maxContentLength

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:103

### `Optional` middleware

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.

Inherited from CustomRequestConfig.middleware

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:99

### `Optional` parameterEncoder

parameterEncoder?: ParameterEncoder

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

Inherited from CustomRequestConfig.parameterEncoder

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:120

### `Optional` proxy

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.

Inherited from CustomRequestConfig.proxy

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:108

### `Optional` signal

signal?: AbortSignal

An `AbortSignal` to cancel the request.

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

Inherited from CustomRequestConfig.signal

- Defined in node_modules/.pnpm/@sap-cloud-sdk+http-client@4.7.0/node_modules/@sap-cloud-sdk/http-client/dist/http-client-types.d.ts:124