Skip to content

Network programming to build my own http server in Golang

Notifications You must be signed in to change notification settings

whoAbhishekSah/http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

progress-banner

HTTP is the protocol that powers the web. This repo builds a HTTP/1.1 server that is capable of serving multiple clients.

Note: If you're viewing this repo on GitHub, head over to codecrafters.io to try the challenge.

Running the app

go run app/server.go --directory /tmp

Sample curls to try

curl -v http://localhost:4221/

curl -v http://localhost:4221/user-agent -H "User-Agent: grape/grape-mango"

curl -v http://localhost:4221/echo/blueberry

curl -v -X POST http://localhost:4221/files/orange_orange_strawberry_raspberry -H "Content-Length: 56" -H "Content-Type: application/octet-stream" -d 'apple apple pear strawberry apple mango blueberry orange'

curl -v -H "Accept-Encoding: gzip" http://localhost:4221/echo/abc | gzip -d

About

Network programming to build my own http server in Golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published