Commit Graph

220 Commits

Author SHA1 Message Date
xfy
b0ce533bde fix: list directory size 2025-06-21 12:32:37 +08:00
xfy
1e17d517bf refactor: remove useless macro 2025-06-20 20:40:30 +08:00
xfy
9c0120a51e chore(rust): convert to stable rust 2025-06-20 20:29:34 +08:00
xfy
f73fc1db67 feat(serve): implement list directory 2025-06-19 22:52:38 +08:00
xfy
0c925f289b feat(serve): add list directory 2025-06-18 20:41:01 +08:00
xfy
6bb543a9bd docs: update todo 2025-06-18 17:21:03 +08:00
xfy
61934b6c0d chore: bump to 0.2.0 v0.2.0 2025-06-17 23:35:50 +08:00
xfy
88098dca5c refactor: reuse not found macros 2025-06-17 23:26:47 +08:00
xfy
16bb3d33c8 feat(reverse): add custom not found 2025-06-17 23:00:47 +08:00
xfy
b805cddf91 fix: wrong custom not found path 2025-06-16 17:48:29 +08:00
xfy
b4ac8c83c8 chore: change github workflows 2025-06-15 22:52:21 +08:00
xfy
a6ddba3a2b feat(reverse): add proxy request timeout 2025-06-15 21:28:48 +08:00
xfy
4d795d1a62 feat: custom error page 2025-06-15 21:24:43 +08:00
xfy
879e51c493 refactor: refactor graceful shutdown with axum_server 2025-06-12 20:22:40 +08:00
xfy
70c4b29e7f feat(reverse): forward request body 2025-06-11 20:50:13 +08:00
xfy
10160ab5e5 chore: improve function readability 2025-06-06 13:48:07 +08:00
xfy
f4c679fd10 chore: vendored native tls 2025-06-02 11:16:00 +08:00
xfy
ec68d20aed fix(reverse_proxy): exclude http headers 2025-06-01 22:36:00 +08:00
xfy
2bc6adce84 fix(reverse_proxy): add wildcard for route 2025-06-01 21:55:19 +08:00
xfy
1b3fcf7443 feat(reverse_proxy): add basic proxy 2025-06-01 21:48:55 +08:00
xfy
136345e872 feat: improve server error display 2025-06-01 20:16:44 +08:00
xfy
bcf088c347 refactor(ssl): use axum_server to handle tls 2025-06-01 20:11:48 +08:00
xfy
8d35c26d90 chore: bump deps 2025-05-31 02:40:18 +08:00
xfy
6a47df5ba3 refactor: remove useless if statement 2025-05-30 16:31:49 +08:00
xfy
3d8c9d44e1 feat(http): add custom not found status code 2025-05-18 04:00:51 +08:00
xfy
17ef670de5 chore: update editorconfig
change markdown indent size to 2
2025-05-18 03:42:55 +08:00
xfy
d5751f1e14 perf(hashmap): use dashmap as global store 2025-05-16 15:57:06 +08:00
xfy
f86bb996b1 fix(http): multiple vhost share same config 2025-05-14 15:41:29 +08:00
xfy
02d02b68ee refactor(http): optimize port parse
add port to route map
2025-05-14 02:42:58 +08:00
xfy
23523c6a37 chore: update runner config 2025-05-12 09:35:17 +08:00
xfy
b5656ff75a fix: handle virtual host error 2025-05-10 01:51:18 +08:00
xfy
e870704cb6 chore: gracefully handle unwrap 2025-05-10 01:29:21 +08:00
xfy
fdbecfbbe9 chore: format macros 2025-05-10 01:07:01 +08:00
xfy
87e34d655d feat(http): implement 304 Not Modified 2025-05-04 00:42:01 +08:00
xfy
3d0e8ba591 feat(http): calculate file etag 2025-05-03 23:20:59 +08:00
xfy
67df0d7db5 fix(serve): fix generate default index
Fix the route was not found due to an empty path.
2025-04-23 21:36:00 +08:00
xfy
e0b5e1a280 docs(todo): add list directory as todo 2025-04-23 21:11:59 +08:00
xfy
c860ac1a55 chore(deps): bump dependecies 2025-04-23 21:05:12 +08:00
xfy
ae612fc20d chore(docs): update todo 2025-04-23 20:49:03 +08:00
xfy
b37ff4607b feat(http): implement custom headers 2025-04-23 20:32:27 +08:00
xfy
07094124d0 ci(macos): run check/test/build in parallel 2025-04-22 21:49:33 +08:00
xfy
60a12113a9 chore(test): add config struct unit test 2025-04-22 21:46:26 +08:00
xfy
f9e0c7839f ci(macos): add clippy check 2025-04-22 21:40:35 +08:00
xfy
b313f870df ci(macos): add cargo cache 2025-04-22 21:37:50 +08:00
a4187b831e Create macos-arm.yml 2025-04-22 20:44:02 +08:00
xfy
58e7fdc255 feat(ssl): add ssl support 2025-04-22 16:26:27 +08:00
xfy
718d13a13a feat(http): enhance error handling and config clarity
- Refactored `serve.rs` loop for robustness (tries all paths before failing).
- Improved error messages in `error.rs` for better debugging.
- Updated `config.rs` and `config.example_full.toml` to reflect new defaults.
- Added debug logs for failed path attempts in file serving.
2025-04-22 15:51:58 +08:00
xfy
c6ff8af73e feat: add custom error message 2025-04-22 15:23:46 +08:00
xfy
f100fbd0ee feat(route): add response compression 2025-04-15 21:35:56 +08:00
xfy
6c0e6dd341 refactor(serve): improve path handling robustness and logging
- Modified file-serving loop to either:
  - Try all paths in `path_arr` before failing (Option 1), or
  - Document fast-fail behavior (Option 2).
- Added debug logs for failed path attempts.

Improves resilience or clarity, depending on chosen approach.
2025-04-12 17:38:05 +08:00