@@ -37,6 +37,18 @@ const client = addProxyToClient(new S3Client({}));
37
37
// `client` now has HTTP proxy config at 'http://127.0.0.1'
38
38
```
39
39
40
+ or
41
+
42
+ ``` ts
43
+ import { S3Client } from ' @aws-sdk/client-s3' ;
44
+ import { addProxyToClient } from ' aws-sdk-v3-proxy' ;
45
+
46
+ const client = addProxyToClient (new S3Client ({}), {
47
+ httpProxy: ' http://127.0.0.1' ,
48
+ });
49
+ // `client` now has HTTP proxy config at 'http://127.0.0.1'
50
+ ```
51
+
40
52
### HTTPS Proxy
41
53
42
54
``` ts
@@ -48,6 +60,18 @@ const client = addProxyToClient(new S3Client({}));
48
60
// `client` now has HTTPS proxy config at 'https://127.0.0.1'
49
61
```
50
62
63
+ or
64
+
65
+ ``` ts
66
+ import { S3Client } from ' @aws-sdk/client-s3' ;
67
+ import { addProxyToClient } from ' aws-sdk-v3-proxy' ;
68
+
69
+ const client = addProxyToClient (new S3Client ({}), {
70
+ httpsProxy: ' https://127.0.0.1' ,
71
+ });
72
+ // `client` now has HTTPS proxy config at 'https://127.0.0.1'
73
+ ```
74
+
51
75
### No Proxy with exception disabled
52
76
53
77
``` ts
@@ -112,6 +136,18 @@ Default: `false`
112
136
113
137
Toggles additional logging for debugging.
114
138
139
+ ##### httpProxy
140
+
141
+ Type: ` string `
142
+
143
+ The URL for the HTTP proxy server.
144
+ If not specified, the value of ` process.env.http_proxy ` or ` process.env.HTTP_RPOXY ` will be used.
145
+
146
+ ##### httpsProxy
147
+
148
+ The URL for the HTTPS proxy server.
149
+ If not specified, the value of ` process.env.https_proxy ` or ` process.env.HTTPS_RPOXY ` will be used.
150
+
115
151
##### agentOptions
116
152
117
153
Type: ` HttpsProxyAgentOptions `
@@ -126,17 +162,17 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform
126
162
127
163
This project is licensed under the Apache-2.0 License.
128
164
129
- [ build-img ] :https://github.com/awslabs/aws-sdk-v3-js-proxy/actions/workflows/release.yml/badge.svg
130
- [ build-url ] :https://github.com/awslabs/aws-sdk-v3-js-proxy/actions/workflows/release.yml
131
- [ downloads-img ] :https://img.shields.io/npm/dt/aws-sdk-v3-proxy
132
- [ downloads-url ] :https://www.npmtrends.com/aws-sdk-v3-proxy
133
- [ npm-img ] :https://img.shields.io/npm/v/aws-sdk-v3-proxy
134
- [ npm-url ] :https://www.npmjs.com/package/aws-sdk-v3-proxy
135
- [ issues-img ] :https://img.shields.io/github/issues/awslabs/aws-sdk-v3-js-proxy
136
- [ issues-url ] :https://github.com/awslabs/aws-sdk-v3-js-proxy/issues
137
- [ codecov-img ] :https://codecov.io/gh/awslabs/aws-sdk-v3-js-proxy/branch/main/graph/badge.svg
138
- [ codecov-url ] :https://codecov.io/gh/awslabs/aws-sdk-v3-js-proxy
139
- [ semantic-release-img ] :https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
140
- [ semantic-release-url ] :https://github.com/semantic-release/semantic-release
141
- [ commitizen-img ] :https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
142
- [ commitizen-url ] :http://commitizen.github.io/cz-cli/
165
+ [ build-img ] : https://github.com/awslabs/aws-sdk-v3-js-proxy/actions/workflows/release.yml/badge.svg
166
+ [ build-url ] : https://github.com/awslabs/aws-sdk-v3-js-proxy/actions/workflows/release.yml
167
+ [ downloads-img ] : https://img.shields.io/npm/dt/aws-sdk-v3-proxy
168
+ [ downloads-url ] : https://www.npmtrends.com/aws-sdk-v3-proxy
169
+ [ npm-img ] : https://img.shields.io/npm/v/aws-sdk-v3-proxy
170
+ [ npm-url ] : https://www.npmjs.com/package/aws-sdk-v3-proxy
171
+ [ issues-img ] : https://img.shields.io/github/issues/awslabs/aws-sdk-v3-js-proxy
172
+ [ issues-url ] : https://github.com/awslabs/aws-sdk-v3-js-proxy/issues
173
+ [ codecov-img ] : https://codecov.io/gh/awslabs/aws-sdk-v3-js-proxy/branch/main/graph/badge.svg
174
+ [ codecov-url ] : https://codecov.io/gh/awslabs/aws-sdk-v3-js-proxy
175
+ [ semantic-release-img ] : https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
176
+ [ semantic-release-url ] : https://github.com/semantic-release/semantic-release
177
+ [ commitizen-img ] : https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
178
+ [ commitizen-url ] : http://commitizen.github.io/cz-cli/
0 commit comments