Releases: aDiThYa-808/golang-http-server
Releases · aDiThYa-808/golang-http-server
v0.1.0
Available endpoints
/upload: upload files to the uploads directory. Performs sanitization before uploading. Creates a tmp file in the uploads directory and copies the received file to it. Renames it with a safe and unique name with the right extension.
-/download: download files from the upload directory. Mention file name in the 'file' query of the url. Returns error if file is not found.
-/stats: returns request metrics in JSON.
-/work: simulates CPU bound work. Computes prime numbers from 2 to the limit mentioned in the request URLs 'limit' query. Ends the process with logs as soon as client disconnects.
-/health: Return OK if server is running.