Skip to content

Commit be525f3

Browse files
Mirror typed-rest-client options (#604)
1 parent 8efd232 commit be525f3

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

api/interfaces/common/VsoBaseInterfaces.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,20 @@ export interface IHttpClientResponse {
8585
}
8686

8787
export interface IRequestOptions {
88+
headers?: IHeaders;
8889
socketTimeout?: number;
8990
ignoreSslError?: boolean;
9091
proxy?: IProxyConfiguration;
9192
cert?: ICertConfiguration;
92-
allowRetries?: boolean;
93-
maxRetries?: number;
9493
allowRedirects?: boolean;
94+
allowRedirectDowngrade?: boolean;
9595
maxRedirects?: number;
96+
maxSockets?: number;
97+
keepAlive?: boolean;
9698
presignedUrlPatterns?: RegExp[];
99+
// Allows retries only on Read operations (since writes may not be idempotent)
100+
allowRetries?: boolean;
101+
maxRetries?: number;
97102
}
98103

99104
export interface IProxyConfiguration {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "azure-devops-node-api",
33
"description": "Node client for Azure DevOps and TFS REST APIs",
4-
"version": "14.0.1",
4+
"version": "14.0.2",
55
"main": "./WebApi.js",
66
"types": "./WebApi.d.ts",
77
"scripts": {

0 commit comments

Comments
 (0)