# HttpRequest<!-- -->

One prepared request attempt, as [HttpClient.sendRequest](https://docs.apify.com/api/client/js/reference/class/HttpClient.md#sendRequest) receives it from the shared pipeline.

## Index[](#Index)

### Properties

* [body](#body)
* [followRedirects](#followRedirects)
* [headers](#headers)
* [method](#method)
* [signal](#signal)
* [stream](#stream)
* [timeoutMillis](#timeoutMillis)
* [url](#url)

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

### [](#body)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L220)optionalbody

body?

<!-- -->

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

Request body, already serialized and compressed, or `undefined` for a request without one.

### [](#followRedirects)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L232)followRedirects

followRedirects: boolean

Whether to follow redirects. With `false`, return a redirect response as it is: the request carries a token that must not follow a redirect to another host.

### [](#headers)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L218)headers

headers: Record\<string, string>

Final request headers, with the client's default headers already merged in.

### [](#method)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L214)method

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

HTTP method.

### [](#signal)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L237)optionalsignal

signal?

<!-- -->

: AbortSignal

The caller's abort signal, to hand to the HTTP library alongside the timeout. The pipeline stops retrying once it aborts, so the transport only has to end the request in flight.

### [](#stream)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L227)stream

stream: boolean

Whether to hand the body back unread as a stream. The caller always gets a web `ReadableStream`.

### [](#timeoutMillis)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L225)optionaltimeoutMillis

timeoutMillis?

<!-- -->

: number

Timeout for this attempt in milliseconds, or `undefined` for a request that runs without one, which is what `timeoutSecs: 'noTimeout'` asks for.

### [](#url)[](https://github.com/apify/apify-client-js/blob/84036425d1fb761bc98185b09045076b3c86192b/src/http_clients/base.ts#L216)url

url: string

Full request URL with the query string already encoded into it.
