-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add memory management and refactor HTTP request parsing
Introduce `destroy_http_request` for proper memory cleanup and refactor the HTTP request parsing logic into modular functions: `parse_http_request_line_from_packet`, `parse_http_request_headers`, and `parse_http_request_body`. This improves code readability and maintainability, reduces redundancy, and enhances error handling.
- Loading branch information
1 parent
a698045
commit 11577e6
Showing
1 changed file
with
183 additions
and
97 deletions.
There are no files selected for viewing
This file contains 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