Open Issues Need Help
View All on GitHubAI Summary: Create a minimal HTTP server that listens on a specified port, accepts a single connection, and responds with a "Hello World" message in a valid HTTP 200 OK response.
AI Summary: Create a minimal HTTP server that listens on a specified port, accepts a single connection, and responds with a "Hello World" message in a valid HTTP 200 OK response.
AI Summary: Implement a `SocketManager` class in C++ that creates a server socket, binds it to a port, accepts incoming connections, and logs each request. The initial implementation should handle single connections without multi-threading. Familiarity with socket functions like `socket()`, `bind()`, `listen()`, `accept()`, `recv()`, and `send()` is required. Optional: explore `select()` or non-blocking I/O for future multi-threading.
AI Summary: Implement a `ResponseBuilder` class for a web server that constructs valid HTTP/1.1 responses (200 OK and 404 Not Found) for static files given a file path. The response should include the status line, headers, and body.
AI Summary: Implement a `RequestParser` for a web server that reads from a socket, parses HTTP/1.1 request lines and headers (excluding the body), and outputs the parsed method, URI, version, and headers as a map. The parser should handle the basic structure of an HTTP request, such as `GET /index.html HTTP/1.1\r\nHost: ...`
AI Summary: Implement CGI (Common Gateway Interface) functionality into the existing WebServ project. This involves correctly handling PATH_INFO, chunking, EOF detection for both request and response bodies, and executing the CGI script (e.g., php-CGI, Python) with the requested file as an argument in the correct working directory. The server should support a single CGI at a time.