Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

mozey/go-echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

go-echo

Simple golang HTTP echo server

Quickstart

go run echo.go -p 8080

Click http://localhost:8080/hello and the response should be similar to this:

{
    "Body": {
        "String": ""
    },
    "ContentLength": 0,
    "Header": {
        "Accept": [
            "*/*"
        ],
        "Accept-Encoding": [
            "gzip, deflate"
        ],
        "Connection": [
            "keep-alive"
        ],
        "User-Agent": [
            "HTTPie/0.9.4"
        ]
    },
    "Host": "localhost:8080",
    "Method": "GET",
    "Proto": "HTTP/1.1",
    "ProtoMajor": 1,
    "ProtoMinor": 1,
    "RemoteAddr": "[::1]:53697",
    "RequestURI": "/hello?q=world",
    "Trailer": null,
    "TransferEncoding": null,
    "URL": {
        "Fragment": "",
        "Host": "",
        "Opaque": "",
        "Path": "/hello",
        "RawPath": "",
        "RawQuery": "q=world",
        "Scheme": "",
        "User": null
    }
}

About

Simple golang HTTP echo server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages