https://github.com/whoabhisheksah/http-server
Network programming to build my own http server in Golang
https://github.com/whoabhisheksah/http-server
Last synced: 3 months ago
JSON representation
Network programming to build my own http server in Golang
- Host: GitHub
- URL: https://github.com/whoabhisheksah/http-server
- Owner: whoAbhishekSah
- Created: 2024-08-17T11:13:12.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-17T15:08:20.000Z (10 months ago)
- Last Synced: 2025-01-21T15:28:25.049Z (4 months ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://app.codecrafters.io/users/codecrafters-bot?r=2qF)
[HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) 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](https://codecrafters.io) to try the challenge.# Running the app
`go run app/server.go --directory /tmp`
## Sample curls to try
```sh
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
```