Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 import 'package:http/http.dart' as http; | |
| 2 | |
| 3 void main() { | |
| 4 http.get("http://httpbin.org/").then((response) { | |
| 5 // Get the headers map. | |
| 6 print(response.headers.keys); | |
| 7 | |
| 8 // Get header values. | |
| 9 print(response.headers['access-control-allow-origin']); | |
|
Søren Gjesse
2013/12/09 08:30:47
Additional label text?
print("Access-Control-Allo
shailentuli
2013/12/11 04:07:52
Added additional label text
| |
| 10 print(response.headers['content-type']); | |
| 11 print(response.headers['date']); | |
| 12 print(response.headers['content-length']); | |
| 13 print(response.headers['connection']); | |
| 14 }); | |
| 15 } | |
| OLD | NEW |