Skip to main content

RequestOptions

Upgather SDK


Upgather SDK / RequestOptions

Interface: RequestOptions

Per-request options passed through to the underlying HTTP call.

Remarks​

Lets a caller override redirect handling and success validation for a single request without affecting the shared client. Needed for endpoints whose success is signalled by a redirect (e.g. a Strapi email-confirmation route that returns a 302 which must be treated as success and not followed).

Properties​

maxRedirects?​

optional maxRedirects: number

Maximum number of redirects to follow (0 disables following).


validateStatus()?​

optional validateStatus: (status) => boolean

Predicate deciding which HTTP status codes resolve instead of throw.

Parameters​

status​

number

Returns​

boolean