Type alias HttpRequestOptions
HttpRequestOptions: { encoding?: BufferEncoding; followRedirect?: boolean | ((redirectUrl) => HttpRequest | null); httpProxy?: string; retry?: { errorCodes?: string[]; maxRetries?: number; methods?: HttpMethods[]; minTimeout?: number; statusCodes?: number[]; timeoutFactor?: number; }; timeout?: number; } Type declaration
Optional
encoding?: BufferEncoding
Optional
followRedirect?: boolean | ((redirectUrl) => HttpRequest | null)
Optional
httpProxy?: string
Optional
retry?: {
errorCodes?: string[];
maxRetries?: number;
methods?: HttpMethods[];
minTimeout?: number;
statusCodes?: number[];
timeoutFactor?: number;
}
Optional
errorCodes?: string[]
Optional
maxRetries?: number
Optional
minTimeout?: number
Optional
statusCodes?: number[]
Optional
timeoutFactor?: number
Optional
timeout?: number