Commit graph

35 commits

Author SHA1 Message Date
Ed Page
325e75d31d chore: Release 2024-08-07 15:36:58 -05:00
Ed Page
c90a05cfd4 fix(serve): Bump mime version req 2024-07-26 10:48:37 -05:00
Ed Page
cca8adf101 fix(serve): Bump mime_guess version req 2024-07-26 10:43:13 -05:00
Ed Page
17ad0190e1 chore: Release 2024-07-05 13:53:10 -05:00
Ed Page
66b82df0fc chore: Update from '_rust/main' template 2024-07-05 13:30:31 -05:00
Ed Page
f83ac39314 chore: Release 2024-07-05 12:30:26 -05:00
Ed Page
52ebfef0e5 docs: Update changelog 2024-07-05 12:29:27 -05:00
Ed Page
9305d4d411 chore: Release 2024-04-15 11:39:02 -05:00
Ed Page
04ddb98c58 chore: Release 2024-02-27 19:47:46 -06:00
Ed Page
768b608678 docs: Update changelog 2024-02-27 19:47:34 -06:00
Ed Page
df5425c302 chore: Release 2023-08-22 09:57:48 -05:00
Ed Page
5b888c20d2 docs: Update changelog 2023-08-22 09:57:04 -05:00
orzogc
53fc982b29 feat(file-serve)!: Allow graceful shutdown of server
Assume that someone was developing an App which would serve some files temporarily, the server should be closed when it was no longer needed. But the server was just blocked for handling incoming requests, there were no valid methods to close it.

So a method for graceful shutdown of the server is introduced in this PR, also a method for checking whether a sever is running.

BREAKING CHANGE: `Server.serve()` returns `Result<(), Error>` instead of `Result<Infallible, Error>` because the server can be closed.
Remove `Debug` trait of `Server`.
2023-08-22 17:29:40 +08:00
Ed Page
af6ce029de chore: Adopt '_rust/main' template 2023-08-14 15:31:43 -05:00
Ed Page
ed9c27b547 chore: Release 2023-06-06 05:53:19 -05:00
Ed Page
5f6a95bfa4 docs: Update changelog 2023-06-01 22:09:26 -05:00
Ed Page
9533355ef5 chore: Release 2023-06-01 21:47:00 -05:00
Ed Page
f8572441eb chore: Release 2023-04-20 10:24:24 -05:00
Ed Page
35fcafe5bc docs: Update changelog 2023-04-20 10:24:04 -05:00
Ed Page
23259e6c6e chore: Use workspace inheritance 2022-11-01 15:09:06 -05:00
Ed Page
4214907931 chore: Bump MSRV to 1.64.0 2022-11-01 14:56:09 -05:00
Ed Page
f7fc91a2b4 chore: Update dependencies 2022-11-01 14:54:20 -05:00
Ed Page
46c28e530d chore: Update MSRV to 1.60.0 2022-09-28 15:12:10 -05:00
Ed Page
ce319d8f52 chore: Release 2022-08-26 10:53:54 -05:00
Ed Page
a16dd4c0aa docs: Update changelog 2022-08-26 10:53:37 -05:00
Ed Page
c15d36a282 fix: Error, rather than panic, on invalid CWD
Fixes #917
2022-08-26 10:37:26 -05:00
Ed Page
bce8ec5125 chore: Release 2022-04-04 10:51:38 -05:00
Ed Page
47460565df docs(serve)!: Clarify how to use
BREAKING CHANGE: Return type, in some cases, was changed to `Infallible`
to clarify it can never return.
2022-04-04 10:37:40 -05:00
Ed Page
26a8c7bccf chore: Release 2022-04-04 09:19:46 -05:00
Ed Page
3c8e11df1e docs: Fill out cargo fields 2022-04-04 09:19:17 -05:00
Ed Page
4c2fa4b850 docs(serve): Clarify intent 2022-04-04 09:16:27 -05:00
Ed Page
787b42c94f chore: Fixup release process 2022-04-04 09:09:40 -05:00
dependabot[bot]
0a1faae37e
chore(deps): Bump tiny_http from 0.9.0 to 0.11.0
Bumps [tiny_http](https://github.com/tiny-http/tiny-http) from 0.9.0 to 0.11.0.
- [Release notes](https://github.com/tiny-http/tiny-http/releases)
- [Changelog](https://github.com/tiny-http/tiny-http/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tiny-http/tiny-http/compare/0.9.0...0.11.0)

---
updated-dependencies:
- dependency-name: tiny_http
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 07:03:15 +00:00
Ed Page
09f577c8f4 fix(serve): Avoid port conflicts
We'll now auto-discover a port to host from, rather than using a hard
coded default.
2022-01-14 14:10:30 -06:00
Ed Page
2030b59e46 refactor: Split out file server code
This has such a distinct role, it better fits as an independent crate
2022-01-14 14:04:38 -06:00