http: add an example with username and password

This commit is contained in:
Nick Craig-Wood 2019-02-04 10:30:05 +00:00
parent 2135879dda
commit 315cee23a0
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ func init() {
Examples: []fs.OptionExample{{
Value: "https://example.com",
Help: "Connect to example.com",
}, {
Value: "https://user:pass@example.com",
Help: "Connect to example.com using a username and password",
}},
}},
}