Commit Graph

6 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
27b63e0a2b update 2025-10-14 15:16:41 +08:00
afad59e0ab feat: update to 0.0.12 2025-04-18 01:16:06 +08:00
17e515ad32 add deno mod 2025-04-17 23:54:21 +08:00
c99d03550e fix: add http2 2024-11-27 18:49:55 +08:00
733677f3f3 init router 2024-10-16 00:47:30 +08:00