void main() {
test('http 통신 테스트', () async {
var uri = Uri.parse('https://api.airvisual.com/v2/nearest_city?key=e3d94328-62dc-4e8d-b34a-091199282977');
var response = await http.get(uri);
expect(response.statusCode, 200);
});
}
http 사용법 조금 변했습니다.
김동혁
작성일
21.04.26 23:08
조회수
124
댓글 1
감사합니다
답글