Commit Graph

15 Commits

Author SHA1 Message Date
a6a7e74559 feat: Refactor server implementation to support Bun and Node environments
- Introduced `ServerNode` and `BunServer` classes to handle server logic for Node and Bun respectively.
- Updated `App` class to initialize the appropriate server based on the runtime environment.
- Enhanced `parseBody` function to handle request body parsing for both environments.
- Modified WebSocket handling to support Bun's WebSocket upgrade mechanism.
- Improved error handling and response structure across the server implementation.
- Added support for custom middleware in the server's request handling.
- Refactored server base functionality into `ServerBase` for better code organization.
- Updated type definitions to reflect changes in server options and listener handling.
- Added a new demo for testing the server functionality with various request types.
2025-12-20 05:11:51 +08:00
cc74dc6803 update add no path and random path 2025-10-22 17:05:20 +08:00
27b63e0a2b update 2025-10-14 15:16:41 +08:00
51305b71c3 fix: cert fix 2025-06-05 19:24:14 +08:00
aeeb205e1e fix: fix types 2025-05-14 21:04:25 +08:00
0e30dfc6ea test path-to-regexp 2025-03-16 23:54:57 +08:00
ba7e00bd7a router 更新 2025-03-02 16:51:07 +08:00
1c3e65df8a feat: add metadata and middleware add preivew middleware 2025-02-26 11:26:52 +08:00
dc2f282f4b feat: 更新cookie模块和添加res和req在app的请求当中 2024-12-11 14:28:46 +08:00
5e38740c7b feat: add simple router 2024-11-16 23:10:54 +08:00
926c0a09cd feat: 更新sign的模块 2024-11-16 12:34:08 +08:00
c462dc31f8 feat: browser router add custom error 2024-11-01 00:23:21 +08:00
52f5f58baf feat: add QueryRouterServer 2024-10-31 00:45:12 +08:00
158b12d811 feat: add export and import 2024-10-25 19:41:01 +08:00
733677f3f3 init router 2024-10-16 00:47:30 +08:00