错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Making RESTful API Calls with HTTP

  • Rap Payne

摘要

We're getting really good at managing the state of our application, but where will that data come from? A local file? A local database? User-entered? Sure. Those are all possibilities, but real-world apps get real-world data from a server out in the cloud somewhere. Your application will make HTTP calls, hopefully asynchronous RESTful HTTP API calls. It'll wait for and process the response and usually display that data. Wow! That's a lot of buzzwords, am I right? In this chapter, we're going to learn what those things mean and how to handle HTTP requests and responses of all types in your Flutter app. Here’s what we need to know: