Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go HTTP Server

Simple HTTP server.

Instructions

  1. Run the server:

    go run main.go

/api/health

  1. Open http://localhost:9000/api/health in a browser or use curl:

    $ curl http://localhost:9000/api/health
    {"ok":true}

/mp3

  1. Add the music file to files:

    mkdir files && \
    curl --location https://freemusicarchive.org/track/Marsel_Minga_-_01_-_Demonstration/download \
    --output files/Marsel_Minga_-_01_-_Demonstration.mp3
  2. Open http://localhost:9000/mp3 in a browser or use curl:

    curl http://localhost:9000/mp3 --output Marsel_Minga_-_01_-_Demonstration.mp3

About

Simple HTTP server

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages