1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00
Files
samples/code_sharing/server
dependabot[bot] 884da6ca4d Bump lints from 4.0.0 to 5.0.0 in /code_sharing/server (#2461)
⚠️  **Dependabot is rebasing this PR** ⚠️ 

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.

---

Bumps [lints](https://github.com/dart-lang/lints) from 4.0.0 to 5.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/dart-lang/lints/releases">lints's releases</a>.</em></p>
<blockquote>
<h2>package:lints v5.0.0</h2>
<ul>
<li><code>recommended</code>:
<ul>
<li>added <a href="https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types">invalid_runtime_check_with_js_interop_types</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/188">dart-lang/lints#188</a>)</li>
<li>added <a href="https://dart.dev/lints/unnecessary_library_name">unnecessary_library_name</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/181">dart-lang/lints#181</a>)</li>
<li>removed <a href="https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators">avoid_null_checks_in_equality_operators</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/200">dart-lang/lints#200</a>)</li>
</ul>
</li>
<li>Updated the SDK lower-bound to 3.5.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/dart-lang/lints/blob/main/CHANGELOG.md">lints's changelog</a>.</em></p>
<blockquote>
<h2>5.0.0</h2>
<ul>
<li><code>recommended</code>:
<ul>
<li>added <a href="https://dart.dev/tools/linter-rules/invalid_runtime_check_with_js_interop_types">invalid_runtime_check_with_js_interop_types</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/188">dart-lang/lints#188</a>)</li>
<li>added <a href="https://dart.dev/lints/unnecessary_library_name">unnecessary_library_name</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/181">dart-lang/lints#181</a>)</li>
<li>removed <a href="https://dart.dev/tools/linter-rules/avoid_null_checks_in_equality_operators">avoid_null_checks_in_equality_operators</a> (<a href="https://redirect.github.com/dart-lang/lints/issues/200">dart-lang/lints#200</a>)</li>
</ul>
</li>
<li>Updated the SDK lower-bound to 3.5.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="af68bf0cba"><code>af68bf0</code></a> rev to 5.0.0 in preparation for publishing (<a href="https://redirect.github.com/dart-lang/lints/issues/210">#210</a>)</li>
<li><a href="9e4fd7deef"><code>9e4fd7d</code></a> Fixes formatting error in the rules.md table (<a href="https://redirect.github.com/dart-lang/lints/issues/206">#206</a>)</li>
<li><a href="6580f83e4c"><code>6580f83</code></a> Remove avoid_null_checks_in_equality_operators from recommended (<a href="https://redirect.github.com/dart-lang/lints/issues/201">#201</a>)</li>
<li><a href="894b5006c4"><code>894b500</code></a> add invalid_runtime_check_with_js_interop_types to the recommended lint set (...</li>
<li><a href="8f93c7998a"><code>8f93c79</code></a> add unnecessary_library_name to recommended (<a href="https://redirect.github.com/dart-lang/lints/issues/198">#198</a>)</li>
<li><a href="f6b5d36485"><code>f6b5d36</code></a> Bump dart-lang/setup-dart from 1.6.4 to 1.6.5 (<a href="https://redirect.github.com/dart-lang/lints/issues/194">#194</a>)</li>
<li><a href="09a9c88a53"><code>09a9c88</code></a> Bump actions/checkout from 4.1.6 to 4.1.7 (<a href="https://redirect.github.com/dart-lang/lints/issues/193">#193</a>)</li>
<li><a href="baaaa56163"><code>baaaa56</code></a> Bump actions/checkout from 4.1.4 to 4.1.6 (<a href="https://redirect.github.com/dart-lang/lints/issues/191">#191</a>)</li>
<li><a href="b254c7e374"><code>b254c7e</code></a> Update README.md (<a href="https://redirect.github.com/dart-lang/lints/issues/189">#189</a>)</li>
<li><a href="5fef5082a1"><code>5fef508</code></a> Tighten up the <code>gen_docs.dart</code> script. (<a href="https://redirect.github.com/dart-lang/lints/issues/187">#187</a>)</li>
<li>See full diff in <a href="https://github.com/dart-lang/lints/compare/v4.0.0...v5.0.0">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=lints&package-manager=pub&previous-version=4.0.0&new-version=5.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

</details>
2024-09-26 08:07:43 +00:00
..

A server app built using Shelf, configured to enable running with Docker.

This sample code handles HTTP GET requests to / and /echo/<message>

Running the sample

Running with the Dart SDK

You can run the example with the Dart SDK like this:

$ dart run bin/server.dart
Server listening on port 8080

And then from a second terminal:

$ curl http://0.0.0.0:8080
Hello, World!
$ curl http://0.0.0.0:8080/echo/I_love_Dart
I_love_Dart

Running with Docker

If you have Docker Desktop installed, you can build and run with the docker command:

$ docker build . -t myserver
$ docker run -it -p 8080:8080 myserver
Server listening on port 8080

And then from a second terminal:

$ curl http://0.0.0.0:8080
Hello, World!
$ curl http://0.0.0.0:8080/echo/I_love_Dart
I_love_Dart

You should see the logging printed in the first terminal:

2021-05-06T15:47:04.620417  0:00:00.000158 GET     [200] /
2021-05-06T15:47:08.392928  0:00:00.001216 GET     [200] /echo/I_love_Dart