Request Header Parser Microservice https://headerparser.radiidev.repl.co/
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.
 
 
Ihsan Topaloglu ad618b45b1
Corrected CORS configuration option
4 years ago
public Initial commit from Gomix. 7 years ago
views fix: index.html footer 4 years ago
.gitconfig Initial commit from Gomix. 7 years ago
.hyperdev-assets Initial commit from Gomix. 7 years ago
.replit Added .replit 4 years ago
README.md Added .replit 4 years ago
package-lock.json Added .replit 4 years ago
package.json Added .replit 4 years ago
server.js Corrected CORS configuration option 4 years ago

README.md

API Project: Request Header Parser Microservice for freeCodeCamp

Run on Repl.it

User stories:

  1. I can get the IP address, preferred languages (from header Accept-Language) and system infos (from header User-Agent) for my device.

Example usage:

  • [base_url]/api/whoami

Example output:

  • {"ipaddress":"159.20.14.100","language":"en-US,en;q=0.5","software":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0"}