You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -82,6 +82,8 @@ The URL to request as simple string, a [`http.request` options](https://nodejs.o
82
82
83
83
Properties from `options` will override properties in the parsed `url`.
84
84
85
+
If no protocol is specified, it will default to `https`.
86
+
85
87
##### options
86
88
87
89
Type: `Object`
@@ -233,7 +235,7 @@ If it's not possible to retrieve the body size (can happen when streaming), `tot
233
235
**Note**: Progress events can also be used with promises.
234
236
235
237
```js
236
-
got('todomvc.com')
238
+
got('sindresorhus.com')
237
239
.on('downloadProgress', progress=> {
238
240
// Report download progress
239
241
})
@@ -343,11 +345,11 @@ const got = require('got');
343
345
constmap=newMap();
344
346
345
347
(async () => {
346
-
let response =awaitgot('todomvc.com', {cache: map});
348
+
let response =awaitgot('sindresorhus.com', {cache: map});
View the [Keyv docs](https://github.com/lukechilds/keyv) for more information on how to use storage adapters.
@@ -394,7 +396,7 @@ You can use the [`tunnel`](https://github.com/koichik/node-tunnel) module with t
394
396
constgot=require('got');
395
397
consttunnel=require('tunnel');
396
398
397
-
got('todomvc.com', {
399
+
got('sindresorhus.com', {
398
400
agent:tunnel.httpOverHttp({
399
401
proxy: {
400
402
host:'localhost'
@@ -550,7 +552,7 @@ It's a good idea to set the `'user-agent'` header so the provider can more easil
0 commit comments