https://github.com/jose-lico/http-server-go
Basic HTTP server in Go
https://github.com/jose-lico/http-server-go
Last synced: about 1 month ago
JSON representation
Basic HTTP server in Go
- Host: GitHub
- URL: https://github.com/jose-lico/http-server-go
- Owner: jose-lico
- Created: 2024-07-10T14:42:03.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T22:29:38.000Z (9 months ago)
- Last Synced: 2024-09-16T05:53:27.148Z (9 months ago)
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Server in Go
## Project Description
Basic HTTP server in Go. While utilizing Go's standard `net` package for TCP connection handling, the core HTTP functionality is implemented from scratch.
This includes request parsing, method handling, response generation, and more.## Features
- Uses Go's `net.Listen()` for TCP connection handling
- Custom implementation of:
- HTTP request parsing
- Handling of HTTP methods (GET, POST, etc.)
- Request routing
- Support for wildcards
- Support for query params
- Header and status code handling
- HTTP response generation
- Support for persistent connections (Keep-Alive)## Resources
- [CodeCrafters HTTP server](https://app.codecrafters.io/courses/http-server/introduction)
- [HTTP/1.1 RFC](https://datatracker.ietf.org/doc/html/rfc2616)[CodeCrafters referral link](https://app.codecrafters.io/r/graceful-shark-470603)