Skip to content

Conversation

@oboard
Copy link
Owner

@oboard oboard commented Nov 25, 2025

Replace @mocket.OK and @mocket.NotFound with direct status code references (OK, NotFound) for cleaner code and better readability

…plify request body access, and add static file serving.
- Add binary message support and ping/pong handling for WebSockets
- Refactor HTTP response system to use status code enums and traits
- Implement BodyReader trait for request body parsing
- Remove logger system and optimize route matching
- Add static file serving with proper content type handling
- Improve WebSocket API with text/binary/pong methods
- Add handle_not_found function for consistent 404 responses
- Remove redundant status_code assignments in Responder impls
- Simplify static file provider implementation
- Clean up unused FFI functions
- Replace raw status code integers with StatusCode enum for better type safety
- Update HttpResponse to use StatusCode instead of StatusCoder trait
- Add Custom variant to StatusCode enum for custom status codes
- Improve JSON handling in responder example with BodyReader implementation
Replace @mocket.OK and @mocket.NotFound with direct status code references (OK, NotFound) for cleaner code and better readability
@oboard oboard merged commit 4cbcc97 into main Nov 25, 2025
2 checks passed
oboard added a commit that referenced this pull request Nov 25, 2025
oboard added a commit that referenced this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants