Skip to content

Commit 049cb00

Browse files
authored
Use https:// in examples in README.md (#280)
1 parent 89e7b66 commit 049cb00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ you to make individual HTTP requests with minimal hassle:
1515
```dart
1616
import 'package:http/http.dart' as http;
1717
18-
var url = 'http://example.com/whatsit/create';
18+
var url = 'https://example.com/whatsit/create';
1919
var response = await http.post(url, body: {'name': 'doodle', 'color': 'blue'});
2020
print('Response status: ${response.statusCode}');
2121
print('Response body: ${response.body}');
2222
23-
print(await http.read('http://example.com/foobar.txt'));
23+
print(await http.read('https://example.com/foobar.txt'));
2424
```
2525

2626
If you're making multiple requests to the same server, you can keep open a
@@ -30,7 +30,7 @@ If you do this, make sure to close the client when you're done:
3030
```dart
3131
var client = new http.Client();
3232
try {
33-
var uriResponse = await client.post('http://example.com/whatsit/create',
33+
var uriResponse = await client.post('https://example.com/whatsit/create',
3434
body: {'name': 'doodle', 'color': 'blue'});
3535
print(await client.get(uriResponse.bodyFields['uri']));
3636
} finally {

0 commit comments

Comments
 (0)