This project is a custom HTTP server package for Node.js that implements basic HTTP protocol handling. It includes HttpRequest
, HttpResponse
, and HttpServer
classes.
- HttpRequest: Parses incoming HTTP requests.
- HttpResponse: Constructs and sends HTTP responses.
- HttpServer: Handles incoming connections and manages request-response cycles.
- Support for HTTP/1.1
- Basic error handling
To use this package in your project, clone the repository, and run it:
git clone https://github.com/abdulazizyas/HttpParser.git
cd HttpParser
node index.js
You can edit the index.js
file as you like to test the HttpServer.