编写 HTTP 服务器
编写 Dart HTTP 服务器的资源包括:
文档
#- 使用 Google Cloud 提供了有关 Dart 服务器可以使用的 Google Cloud 产品(例如 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.6.0。页面最后更新于 2025-02-05。 查看源代码 或 报告问题.