# ActorServerRequestOptions<!-- -->

Options of [ActorServerClient.request](https://docs.apify.com/api/client/js/reference/class/ActorServerClient.md#request).

### Hierarchy

* [TimeoutOptions](https://docs.apify.com/api/client/js/reference/interface/TimeoutOptions.md)
  * *ActorServerRequestOptions*

Added in 3.0.0

## Index[](#Index)

### Properties

* [compression](#compression)
* [data](#data)
* [headers](#headers)
* [method](#method)
* [params](#params)
* [parentRequestId](#parentRequestId)
* [responseType](#responseType)
* [signal](#signal)
* [timeoutSecs](#timeoutSecs)

## Properties<!-- -->[](#Properties)

### [](#compression)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L320)optionalcompression

compression?

<!-- -->

: [HttpCompressionAlgorithm](https://docs.apify.com/api/client/js/reference.md#HttpCompressionAlgorithm) | [HttpCompressor](https://docs.apify.com/api/client/js/reference/interface/HttpCompressor.md)

Compression algorithm for the request body, as a name or an [HttpCompressor](https://docs.apify.com/api/client/js/reference/interface/HttpCompressor.md). The body is sent uncompressed when it's not set, since the Actor's server may not decode a compressed body.

### [](#data)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L309)optionaldata

data?

<!-- -->

: unknown

Request body, serialized the same way as for API calls: a plain object or array is sent as JSON, and a string or binary value as it is.

### [](#headers)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L304)optionalheaders

headers?

<!-- -->

: Record\<string, string>

Additional headers of the request.

### [](#method)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L300)optionalmethod

method?

<!-- -->

: GET | HEAD | POST | PUT | DELETE | CONNECT | OPTIONS | TRACE | PATCH = GET | HEAD | POST | PUT | DELETE | CONNECT | OPTIONS | TRACE | PATCH

HTTP method of the request.

### [](#params)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L302)optionalparams

params?

<!-- -->

: Record\<string, unknown>

Query parameters of the request, converted the same way as for API calls.

### [](#parentRequestId)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L315)optionalparentRequestId

parentRequestId?

<!-- -->

: string

The `X-Actor-Request-ID` header of the request your Server Actor is handling. It's sent on as the same header, so the called Actor charges at that request's pricing tier.

See more at <https://docs.apify.com/platform/actors/development/programming-interface/standby#compose-server-actors>

### [](#responseType)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/resource_clients/actor_server.ts#L326)optionalresponseType

responseType?

<!-- -->

: [ApifyResponseType](https://docs.apify.com/api/client/js/reference.md#ApifyResponseType) = [ApifyResponseType](https://docs.apify.com/api/client/js/reference.md#ApifyResponseType)

How to return the response body: `'parsed'` by its content type, `'buffer'` as raw bytes in a Uint8Array, or `'stream'` as a web ReadableStream with the body unread.

### [](#signal)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/timeouts.ts#L49)optionalinheritedsignal

signal?

<!-- -->

: AbortSignal

Inherited from TimeoutOptions.signal

Aborts the method. Once the signal aborts, the request in flight is ended, no retry or further poll follows, and the method rejects with the signal's `reason`.

### [](#timeoutSecs)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/timeouts.ts#L43)optionalinheritedtimeoutSecs

timeoutSecs?

<!-- -->

: [Timeout](https://docs.apify.com/api/client/js/reference.md#Timeout)

Inherited from TimeoutOptions.timeoutSecs

Timeout for the API request: a tier name (`'short'`, `'medium'`, `'long'`), a number of seconds, or `'noTimeout'`. Defaults to the tier the method is assigned, which its documentation names.
