go-http-server
go-http-server is a HTTP server written in GoLang. It is able to handle multiple requests concurrently using Goroutines. Data is exchanged with the server through GET and POST requests.
I have a 3D printer that currently lives in my garage. The location is fine for now, but having to go back and forth from my computer to the printer is getting old. One of my motivations for this project is to connect a raspberry pi or similar type of SBC to my 3D printer and to be able to start and monitor prints from my desk. I thought it would be an interesting project to create the server and client software myself and a great learning opportunity too!
Check it out on my repo!
Update June 12 2024:
I have added support for compressing responses and handling the encoding header in requests. The compressing algorithm used is gzip and the correct encoding and header is included in response now. Also made sure the header parser is case-insensitive in case some clients send headers in lowercase.
Installation
Clone the repository to your computer:
Compile the program:
Alternate Installation
You can clone the repository using the instructions above and run the server.sh
script. The script will compile the program and run it.
Usage
Run the server:
Run with -h
to see avaliable commands: