@@ -134,7 +134,7 @@ const options = {
134
134
' < header name >' : ' < header value >'
135
135
},
136
136
contentEncoding: ' < Encoding type, e.g.: aesgcm or aes128gcm >' ,
137
- proxy: ' < proxy server address >'
137
+ proxy: ' < proxy server options >'
138
138
}
139
139
140
140
webpush .sendNotification (
@@ -182,7 +182,9 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
182
182
retained by the push service (by default, four weeks).
183
183
- ** headers** is an object with all the extra headers you want to add to the request.
184
184
- ** contentEncoding** is the type of push encoding to use (e.g. 'aesgcm', by default, or 'aes128gcm').
185
- - ** proxy** proxy hostname/ip and a port to tunnel your requests through (eg. http://< hostname >:< port >).
185
+ - ** proxy** is the [ HttpsProxyAgent's constructor argument] ( https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options )
186
+ that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
187
+ or an "options" object with more specific properties.
186
188
187
189
### Returns
188
190
@@ -353,7 +355,7 @@ const options = {
353
355
' < header name >' : ' < header value >'
354
356
},
355
357
contentEncoding: ' < Encoding type, e.g.: aesgcm or aes128gcm >' ,
356
- proxy: ' < proxy server address >'
358
+ proxy: ' < proxy server options >'
357
359
}
358
360
359
361
try {
@@ -407,7 +409,9 @@ request only. This overrides any API key set via `setGCMAPIKey()`.
407
409
retained by the push service (by default, four weeks).
408
410
- ** headers** is an object with all the extra headers you want to add to the request.
409
411
- ** contentEncoding** is the type of push encoding to use (e.g. 'aesgcm', by default, or 'aes128gcm').
410
- - ** proxy** proxy hostname/ip and a port to tunnel your requests through (eg. http://< hostname >:< port >).
412
+ - ** proxy** is the [ HttpsProxyAgent's constructor argument] ( https://github.com/TooTallNate/node-https-proxy-agent#new-httpsproxyagentobject-options )
413
+ that may either be a string URI of the proxy server (eg. http://< hostname >:< port >)
414
+ or an "options" object with more specific properties.
411
415
412
416
### Returns
413
417
0 commit comments