Skip to content

Simple HTTP echo server written in Go

Notifications You must be signed in to change notification settings

sebastl/http-echo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

http-echo

A simple HTTP echo server written in Go.

How to use

go run http-echo.go

This will compile and start the HTTP server. By default, it listens on port 8000. Once running, you can make requests from any HTTP client to http://localhost:8000/ and the server will echo the request back in the response body.

To use a different port, specify the desired port as a command-line argument:

go run http-echo.go 12345

About

Simple HTTP echo server written in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%