class _MyHomePageState extends State<MyHomePage> {
Future fetch() async {
Uri url = Uri.parse(
'https://pixabay.com/api/');
http.Response response = await http.get(url);
}
//status code를 찍어봐서 200이 찍히면 성공이다.
print('Response status: ${response.statusCode}');
print('Response body : ${jsonDecode(utf8.decode(response.bodyBytes))}');