You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Buddy Sandidge b0b44a992f Allow multiple formats for response, add html and json response
• If a request comes in to the root path, look at accept header and
   parse it. Check for hmtl, json, and text. If no known accept header
   comes in, return text/plain
 • Add route for /json that always returns json response
 • Add route for /text that always returns text response
 • Add route for /html that always returns html response
10 years ago
vendor Add web framework dependencies for pat and negroni 10 years ago
.gitignore Add proof of concept WebApp with basic functionality 10 years ago
LICENSE Initial commit 10 years ago
README.md Initial commit 10 years ago
ip.go Allow multiple formats for response, add html and json response 10 years ago
logger.go Use headers to check ip addresses for use behind proxy 10 years ago
server.go Allow multiple formats for response, add html and json response 10 years ago
what-is-my-ip.go Allow multiple formats for response, add html and json response 10 years ago

README.md

what-is-my-ip

Simple app to get the public IP address of a client