Typescript HTTP Server
··113 words·1 min
Table of Contents
HTTP Server in TypeScript #
HTTP Server in TypeScript is a project to create a HTTP Server using pure TypeScript.
This project is based off of the Build your own HTTP Server
by Codecrafters.io.
Features #
In this project, we have implemented the following.
HTTP GET
requests.HTTP POST
requests.- URL Path Parsing.
/echo
endpoint to echo the get request path./user-agent
endpoint to echo the user-agent of the request.- Parallel computations.
GET /files/<filename>
endpoint to read the file and return the content.POST /files/<filename>
endpoint to write the content to the file.- Content encoding using
gzip
Learning outcomes #
Through this project, I have learned the following.