Skip to content
forked from traefik/whoami

get whoami infomation for current http request

Notifications You must be signed in to change notification settings

opera443399/whoamI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

howto

return:

  • hostname
  • http headers

for testing purposes only

#build
$ git clone https://github.com/opera443399/whoamI.git
$ cd whoamI/
$ ./build.sh


#run
$ docker run -d -p 8888:80 opera443399/whoami


#test
$ curl "http://127.0.0.1:8888"
Hostname: 5f27d36cf571

---- Http Request Headers ----

GET / HTTP/1.1
Host: 127.0.0.1:8888
User-Agent: curl/7.29.0
Accept: */*


---- Active Endpoint ----

[howto] version: 0.9 
    curl 127.0.0.1/ 
    curl 127.0.0.1/?wait=2s 
    curl 127.0.0.1/test 
    curl 127.0.0.1/api 
    curl 127.0.0.1/health 
    curl 127.0.0.1/health -d '302'


source

https://github.com/opera443399/whoamI

fork

https://github.com/emilevauge/whoamI

About

get whoami infomation for current http request

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 89.7%
  • Shell 7.4%
  • Dockerfile 2.9%