编写 HTTP 服务器
用于编写 HTTP 服务器的 Dart 资源包括
文档
#- 使用 Google 云 包含有关 Dart 服务器可以使用的 Google 云产品的信息,例如 Cloud Run。
- 使用 Google API 指向可帮助您从 Dart 应用中使用 Firebase 和 Google 客户端 API 的资源。
示例
#- 一个简单的 Dart HTTP 服务器
- 使用
shelf
包。 - 也使用
shelf_router
和shelf_static
包。 - 可部署在 Cloud Run 上。
- 使用
- 一个使用 Cloud Firestore 的 Dart HTTP 服务器
- 使用
googleapis
包中的 Cloud Firestore 功能。 - 也使用
googleapis_auth
、shelf
和shelf_router
包。 - 可部署在 Cloud Run 上。
- 使用
除非另有说明,否则本网站上的文档反映的是 Dart 3.7.1 版本。页面上次更新于 2024-05-06。 查看源代码 或 报告问题。