IntegerAlex / hasty-server

Hasty-Server is a lightweight web framework
https://hasty-server.vercel.app
Other
9 stars 18 forks source link

Send and Json methods can be improoved #57

Open wenayy opened 2 days ago

wenayy commented 2 days ago

The send and json methods could be enhanced to handle more content types based on request headers. This could include HTML or XML responses. can modify the existing methods to check the Content-Type header of the request and respond accordingly.

IntegerAlex commented 2 days ago

Till now we haven't added any functionality of Headers to not make it complex for starting version as it has many side-effects that are not our main concern for version 1. We will definitely add If you want i can assign this to you.

wenayy commented 2 days ago

yes assign this to me

IntegerAlex commented 2 days ago

Just follow Guidelines

wenayy commented 2 days ago

just added a pr you can check #60 and give feedback on that

wenayy commented 2 days ago

that send method pr is succesfully done and the sendFile pr is sent to you you can check it now #61 you can merge the send method pr #60