Jonas Finnemann Jensen
Jonas Finnemann Jensen
Indeed please do explain that while this is part of the part project, it's not a publicly supported product. ie. if users try to redeploy this locally, you should let...
Escaping strings correctly and tweaking templates can be error-prone and slow... It's often easier to simply expose the data through REST APIs that return plain JSON. Then write a client-side...
CSP headers allows you to restrict content.. and harden against XSS attacks. It's always a good idea to forbid: * inline scripts * eval * scripts from domains you haven't...
In https://github.com/dart-lang/dart_ci/blob/9e8bc64693bc56e939cfdd8d59b471505a189815/lib/src/fetch_changes.dart#L25 the `client` object is not closed... Generally, it's advisable to call `client.close()` in a finally statement.. --- An even better solution is create an object that is responsible...
Using `dart:io` directly can be hard, and often you just need a quick way to redirect, a light weight server framework such as [package shelf](https://pub.dartlang.org/packages/shelf) (maintained by the Dart Team),...
See: https://cloud.google.com/storage/docs/exponential-backoff Shameless self plugging again: [package `retry`](https://pub.dartlang.org/packages/retry), will make this a lot easier.. Just specify which exceptions you want to retry on... or add `retryIf: (e) => true` :)...
Then use something like: ```dart import 'dart:io'; import 'package:shelf/shelf_io.dart' as shelf_io; import 'package:appengine/appengine.dart'; main() async { await withAppEngineServices(() { useLoggingPackageAdaptor(); await runAppEngine((r) => shelf_io.handleRequest(r, myShelfHandler)); }); } ``` Then you...
### Plugin all ### Use case Related packages can be hard to find. ### Proposal Topics helps users on pub.dev discover packages, and related packages. You can see a list...
## `bin_files_must_export_main` Could also be called: * `no_libraries_in_bin` * `executable_without_main` ## Description Dart files in `bin/` should export a `main` function that can serve as entrypoint for an executable. ##...
See: https://dart.dev/tools/pub/pubspec#topics Other packages with this topic include: https://pub.dev/packages?q=topic%3Acrypto