Typescript HTTP Server
··112 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 GETrequests.HTTP POSTrequests.- URL Path Parsing.
/echoendpoint to echo the get request path./user-agentendpoint 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.