All notable changes to this project will be documented in this file.
- minor bug fixes
- Updated License to GOFL-V1 License
- Fixed the issue of
res.download()
not sending the correct response.
- Added support for
cors
middleware to enable Cross-Origin Resource Sharing.- which is in built by using
server.cors(true)
to enable cors.
- which is in built by using
- Added support for
params
in routes. Now you can define routes with parameters like/users/:id
and access the parameter value usingreq.params.id
. - Added
download()
method to the response objectres.download()
.
- HTTPParserError: Response does not match the HTTP/1.1 protocol (Invalid header value char)
- The issue was due to using
\n
instead of\r\n
to terminate header lines. Each header should end with\r\n
for proper protocol compliance.
- The issue was due to using
- Added
sendFile()
method to send files as response. - Added
server.close()
This method has been implemented to explicitly close the server when necessary. - Added mime-types library to handle content-type for files.
- Fixed the issue of POST requests containing BODY data not being parsed correctly.
- Added Chaining of response methods.
- Added support for PUT, DELETE, PATCH, HEAD, OPTIONS HTTP methods.
- Added support for setting status code in response
- Fixed same path but different methods not being handled correctly.
- Fixed issue of
res.json()
not sending the correct response.
- Added support for sending JSON responses using
res.json()
method.
- Fixed the issue of Npm main entry point not being set correctly.
- Fixed Issue of same path but different methods not being handled correctly.
- Fixed Issue of
res.send()
not sending the correct response.
- Added support for handling multiple routes with the same path but different methods.
- Created new Response class to handle response sending.
- Fixed response handling where extra quotes were added to strings.
- Implemented
res.send()
abstraction to simplify response handling.
- Issue where POST requests were not being parsed correctly.
- Issue where Nested JSON objects were not being parsed correctly.
- Initial release of HTTP server with support for basic routing.
- Implemented custom JSON parser for handling incoming HTTP requests.
- Basic functionality for parsing GET and POST requests.
- Custom path routing support.