-
Notifications
You must be signed in to change notification settings - Fork 0
Otm #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... 📒 Files selected for processing (3)
WalkthroughThis update introduces a major refactor and expansion of a C++ web server project. It adds robust HTTP request/response handling, CGI execution, multipart file uploads, error page serving, and a modern, interactive web UI. Numerous new source and header files are created for modular server components, while legacy, experimental, and test files are removed. The configuration, build scripts, and static resources are overhauled to support new features and a streamlined deployment. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Webserv
participant WebservHandler
participant Server
participant ClientData
participant Request
participant Response
participant ResponseUtils
participant Cgi
Client->>Webserv: Connects / Sends HTTP request
Webserv->>WebservHandler: Reads and parses request
WebservHandler->>ClientData: Updates connection state
WebservHandler->>Request: Parses HTTP request
WebservHandler->>Webserv: Signals request complete
Webserv->>Response: Prepares HTTP response (GET/POST/DELETE)
Response->>ResponseUtils: Checks file/dir, builds headers
alt CGI required
Response->>Cgi: Executes CGI script
Cgi->>Response: Returns CGI output
end
Response->>ClientData: Stores response, sets progress READY
Webserv->>Client: Sends response (headers, then body)
alt Multipart upload
WebservHandler->>ClientData: Handles multipart boundaries
WebservHandler->>Upload.cpp: Writes file chunks, renames files
end
Webserv->>Client: Closes connection on completion or timeout
Poem
Tip Migrating from UI to YAML configuration.Use the Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Improvements
Bug Fixes
Refactor
Style
Documentation
Chores