Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace @mocket.OK and @mocket.NotFound with direct status code references (OK, NotFound) for cleaner code and better readability